summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* wdctl: use err_exclusive_options()Karel Zak2012-07-261-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* prlimit: use err_exclusive_options()Karel Zak2012-07-261-10/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use err_exclusive_options()Karel Zak2012-07-261-33/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: use err_exclusive_options()Karel Zak2012-07-261-18/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: use err_exclusive_options()Karel Zak2012-07-261-19/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use err_exclusive_options()Karel Zak2012-07-261-58/+32Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: use err_exclusive_options()Karel Zak2012-07-261-20/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chcpu: use err_exclusive_options()Karel Zak2012-07-261-15/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix usage()Karel Zak2012-07-201-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --reltime to print human readable deltasKarel Zak2012-07-202-18/+75
| | | | | | | | | | | | | | | | | [Jul20 09:50] device vnet0 entered promiscuous mode [ +0.002248] virbr0: topology change detected, propagating [ +0.000017] virbr0: port 2(vnet0) entered forwarding state [ +0.000036] virbr0: port 2(vnet0) entered forwarding state [ +0.001663] ADDRCONF(NETDEV_CHANGE): virbr0: link becomes ready [ +10.480914] vnet0: no IPv6 routers present [Jul20 14:35] xhci_hcd 0000:0e:00.0: WARN Event TRB for slot 3 ep 5 with no TDs queued? [Jul20 19:23] EXT4-fs (sda2): re-mounted. Opts: (null) [ +6.052980] EXT4-fs (sda2): re-mounted. Opts: (null) Suggested by Linus: http://thread.gmane.org/gmane.linux.kernel/1290886/focus=1296138 Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg; cleanup time printing stuffKarel Zak2012-07-201-14/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: implement backwardly compatible --raw for /dev/kmsgKarel Zak2012-07-202-2/+25
| | | | | | .. and if you really want raw data from /dev/kmsg then use dd(1) ;-) Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: cleanup exclusive_option() usageKarel Zak2012-07-201-10/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --follow featureKarel Zak2012-07-202-5/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: support --clear for kmsgKarel Zak2012-07-201-1/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: read /dev/kmsg (since kernel 3.5.0)Karel Zak2012-07-201-28/+202
| | | | | | | | | | | kmsg advantages: - extendible format - tags for messages - one read() returns one complete record See kernel Documentation/ABI/testing/dev-kmsg. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --syslog to force to old syslog(2) interfaceKarel Zak2012-07-192-2/+14
| | | | | | | ... just for debugging or for people who somehow depends on syslog(2) behavior. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: refactoring for kmsg supportKarel Zak2012-07-191-48/+71
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: unify internal APIsKarel Zak2012-07-191-18/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: cleanup, move more stuff to control structKarel Zak2012-07-191-33/+54
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: move filename to control structKarel Zak2012-07-191-13/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add --source and --targetKarel Zak2012-07-172-26/+94
| | | | | | | | | | | | | | | | | | | | | | | | In some cases (for example if only one mount argument is given) may be mount request ambivalent: # mount /foo and fstab: /dev/sda5 /foo rw 0 0 /foo /bar bind 0 0 the new options allows to be more explicit # mount --target /foo (mounts /dev/sda5) # mount --source /foo (binds /foo to /bar) It's possible to use the options together # mount --source /dev/sda2 --target /home Signed-off-by: Karel Zak <kzak@redhat.com>
* eject: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ldattach: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cytune: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcmk: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-162-4/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk28'Karel Zak2012-07-1613-27/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2012wk28: translation: unify file open error messages translation: unify stat error messages utmpdump: use help and version output macros su: align with howto-usage-function fdisk: make if clause easier to read look: remove extra semicolon utmpdump: remove unused variable swapon: remove unused variables lib/loopdev: minor bug fix: add missing semicolon lib/pager: minor compiler warning fixes libblkid: remove duplicate entries in symbols
| * translation: unify file open error messagesSami Kerola2012-07-1612-20/+20
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * translation: unify stat error messagesSami Kerola2012-07-165-7/+7
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * swapon: remove unused variablesSami Kerola2012-07-161-1/+0Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | swapon: kill unused variables in show_table()Petr Uzel2012-07-161-1/+0Star
| | | | | | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* | mount: ext4 option inode_readahead should be inode_readahead_blks in mount.8Eryu Guan2012-07-161-2/+2
|/ | | | | | | Mount option inode_readahead should be inode_readahead_blks. Also the value should be a power of 2. Signed-off-by: Eryu Guan <guaneryu@gmail.com>
* swapon: fix --summary output regressionSami Kerola2012-07-101-1/+1
| | | | | | | Commit 64b588814e5f081a7ab37f820984aa7a2de9eee9 changed --summary header alignment, and usage of spaces vs tabs in output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* swapon: make --show size to be human readable by defaultSami Kerola2012-07-102-7/+29
| | | | | | | Cc: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: add --show optionSami Kerola2012-07-102-1/+203
| | | | | | | | | | | | The --show uses lib/tt.c, which allows user to specify columns he is interested of, and avoids using hard coded field sizes which may be problematic when system has large enough swap. [kzak@redhat.com: - improve usage(), remove unused code] Cc: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: mention the required mount options for journaled version 2 quotaBjörn Jacke2012-07-091-1/+10
|
* docs: add quota mount option support description for ext2Björn Jacke2012-07-091-1/+3
|
* docs: fix typos found by misspellingsBernhard Voelker2012-07-091-2/+2
| | | | | | | | | | | | | | | | | | The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * Documentation/releases/v2.18-ReleaseNotes: Fix typo in news entry. * NEWS: Likewise. * config/texinfo.tex: Fix typo in comments. * libmount/src/context.c: Fix typo in comment. * libmount/src/fs.c: Likewise. * login-utils/login.c: Likewise. * login-utils.su.1: Fix typo in man page. * sys-utils/chcpu.c: Fix typo in error message. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-21/+21
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: don't set time for --systzKarel Zak2012-07-041-5/+6
| | | | | | | | | | | Not sure why, but the current --systz uses non-NULL timeval for settimeofday(). It means that build-in kernel warp clock mechanism is not used and the system time is always modified. The built-in kernel implementation allows to move the clock by timezone only for very first settimeofday() call. Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: fix typoKarel Zak2012-06-271-1/+1
| | | | | Reported-by: Manan Tuli <mt_void@yahoo.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup .gitignore filesKarel Zak2012-06-261-32/+0Star
| | | | | | | - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-74/+40Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move hwclock to sys-utils/Karel Zak2012-06-267-0/+3992
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert sys-utils/ to moduleKarel Zak2012-06-262-285/+316
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: default to new sys-utils/mount.c, add --enable-deprecated-mountKarel Zak2012-06-261-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tunelp: check fstat return code [coverity scan]Karel Zak2012-06-211-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>