summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* docs: remove repeated words [checkmans.sh]Sami Kerola2013-04-091-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: mount.8: make propagation flags adjustable [checkmans.sh]Sami Kerola2013-04-091-1/+8
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setarch: clean up usage()Sami Kerola2013-04-091-23/+21Star
| | | | | | Requested-by: Karel Zak <kzak@redhat.com> References: http://marc.info/?l=util-linux-ng&m=136516351523680&w=2 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsfreeze: add note about atime to the man pageKarel Zak2013-04-081-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: add option to list settable architecturesSami Kerola2013-04-052-3/+18
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lscpu: fix error messageSami Kerola2013-04-051-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* losetup: allow -j option argument to be relative pathSami Kerola2013-04-051-3/+10
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsfreeze: tell user when mandatory option is not specifiedSami Kerola2013-04-051-7/+18
| | | | | | | This commit also removes use of internal magic values by replacing them with a enum definition. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: fix usage() output consistancySami Kerola2013-04-051-2/+2
| | | | | | | Possible facilities and levels are meant to be printed to same file as the rest of the usage output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: remove repeated wordsKarel Zak2013-04-052-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: add --auto to usage()Karel Zak2013-04-051-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* readprofile: reorder options in man pageKarel Zak2013-04-051-27/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* readprofile: add --counters to the man pageKarel Zak2013-04-051-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add --read-write to man pageKarel Zak2013-04-052-2/+2
|
* mount: add --show-labels to man pageKarel Zak2013-04-051-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: normalize man page formattingKarel Zak2013-04-051-14/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: make /proc/sysinfo usage more robust [coverity scan]Karel Zak2013-03-271-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: remove dead code [coverity scan]Karel Zak2013-03-271-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: possible pointer dereferences [coverity scan]Karel Zak2013-03-271-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: clean up usageKarel Zak2013-03-261-8/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/pathnames: rename _PATH_ADJPATH to _PATH_ADJTIMEKarel Zak2013-03-262-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: add --adjfile command line optionKarel Zak2013-03-262-19/+30
| | | | | | ... for better compatibility with hwclock. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: improve --move error message on shared treesKarel Zak2013-03-252-6/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix typos in man pageKarel Zak2013-03-211-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't use nested BUILD_*Karel Zak2013-03-211-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()Karel Zak2013-03-211-10/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: don't confuse users with select() timeout warningKarel Zak2013-03-211-3/+2Star
| | | | | Reported-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: fix compiler warning [clang -Wuninitialized]Karel Zak2013-03-201-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add TB to list of supported suffixesKarel Zak2013-03-184-5/+5
| | | | | Reported-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: use $PAGER for --human output, add --nopagerKarel Zak2013-03-182-5/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --humanKarel Zak2013-03-182-6/+21
| | | | | | | | * enable --reltime * enable --color * a little bit cleanup main() Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: more colors, more funKarel Zak2013-03-181-21/+101
| | | | | | | | * colorize subsystem prefix * colorize time * colorize by keywords (now "segfault" only) Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: make hwclock leap-second-awareJoseph Parmelee2013-03-181-2/+9
| | | | | | | | | | | | | | | | | | | | Attached is a patch file leap_seconds.patch against util-linux-2.22.2 that allows leap seconds to be included in hwclock --show or --hctosys. The current code uses the default UTC zonefile in reading the hardware RTC with mktime(). This zonefile usually does not include leap seconds. As of this date there have been a total of 25 leap seconds added since the epoch (start of 1970). This is particularly a problem for systems using ntp to maintain their system clocks because ntp does take leap seconds into account. A user can specify a leap-second-aware zonefile via /etc/localtime. By defining the environment variable TZUTC, mktime() can be induced to use a matching UTC zonefile that includes leap seconds. The default behavior (TZUTC undefined) is unchanged. Regards, Joseph Parmelee jparmele at wildbear.com
* arch: remove the command, deprecated since 2.13, use coreutils versionKarel Zak2013-03-143-130/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsfreeze: check for collision between optionsKarel Zak2013-03-131-1/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsfreeze: clean up usage(), add -VKarel Zak2013-03-132-16/+20
| | | | | | | | | - clean up usage() - add -V,--version - print usage() if not action specified - update man page Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: use include/timer.hKarel Zak2013-03-131-18/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: use strtotimeval() from libcommonKarel Zak2013-03-131-12/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare: tweak styleMike Frysinger2013-03-041-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* unshare(1): delete empty NOTES sectionMike Frysinger2013-03-041-1/+0Star
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* readprofile: fix --reest (--reset) typoKarel Zak2013-03-041-1/+1
| | | | | Reported-by: Branislav Blaskovic <notifications@github.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: add note about namespaces too --all-targetsKarel Zak2013-02-272-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: add --all-targetsKarel Zak2013-02-262-59/+136
| | | | | | | | | | | | | | | | | | | | | The same source (whole filesystem or filesystems subvolume) could be mounted on more targets (mountpoints). For example bind mounts or btrfs sub-volumes. If you want to detach the source device from the system then you need to unmount all the mountpoints. umount --all-targets <device|mountpoint> provides this functionality. This option could be used together with --recursive. Then all nested mountpoints within the filesystem are unmounted too. For example: umount --recursive --all-targets /dev/sdb1 should be a way how to make the device unmounted at all. Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: improve --recursive docsKarel Zak2013-02-251-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mountpoint: don't hardcode pathsKarel Zak2013-02-141-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: don't read cpuid on non-live systemsKarel Zak2013-02-141-3/+4
| | | | | Reported-by: Luis Aranguren <pizzaman@hotmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: fix errors in manpageZbigniew Jędrzejewski-Szmek2013-02-141-15/+21
| | | | | | | - spell abbreviations with capital letters - fix the names of a few options and files Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
* unshare,nsenter: spawn shell by defaultZbigniew Jędrzejewski-Szmek2013-02-144-15/+19
| | | | | | | | | | | | | The behaviour mimics chroot. Possibly it would have been nicer to to query the password database in the new namepace and run the shell of the user there, but it's hard to do correctly. getpwuid() might need to load nss plugins, and the arch in the new namespace might be different (in case of NEWNS mounts), or the hostname might be different, etc. So in general it's not possible to do it reliably. Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
* switch_root: Add a sanity checkRichard Weinberger2013-02-131-1/+7
| | | | | | | As switch_root basically does rm -Rf / we should make sure that / is really an initramfs. Signed-off-by: Richard Weinberger <richard@nod.at>
* libmount: correctly propagate ambivalent blkid probing resultsKarel Zak2013-02-131-0/+5
| | | | | | | | libmount ignores "ambivalent probing result" from libblkid and tries filesystems /etc/filesystems. This is incorrect behavior. Reported-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>