summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* docs: restore the mention of uhelper= and helper= in man page of umountBenno Schulenberg2014-08-051-2/+12
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* zrmactl: add new command to control /dev/zramN devicesKarel Zak2014-08-013-0/+686
| | | | | Co-Author: Timofey Titovets <nefelim4ag@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove swap-common.h from sys-utils/Makemodule.amSami Kerola2014-07-301-2/+1Star
| | | | | | The commit 25a365e moved the file to include/ Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: allow to use --set{uid,gid} for all namespacesKarel Zak2014-07-292-9/+20
| | | | | | | | | Now it's possible to set UID and GID for user namespaces only. This patch removes this restriction and allow to use --set{uid,gid} in all cases. The default for user namespaces is still GID=0, UID=0. Reported-by: Tomas Doran <bobtfish@bobtfish.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: remove all mention of helper= and uhelper= from umount man pageBenno Schulenberg2014-07-291-11/+10Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: sort the options in the man pages of hwclock and uuiddBenno Schulenberg2014-07-291-207/+202Star
| | | | | | Also improve the formatting a bit. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: bring the rtcwake man page closer to standard formattingBenno Schulenberg2014-07-291-75/+77
| | | | | | | Also sort the options alphabetically, and use the standard comma instead of the vertical bar to separate short from long option. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* hwclock: check for permissions before use clock interfaceKarel Zak2014-07-291-1/+4
| | | | | Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* swaplabel: move swapon-common to include directorySami Kerola2014-07-281-28/+0Star
| | | | | | | | | | This fixes the following compiler warning. disk-utils/swaplabel.c:175:2: warning: implicit declaration of function 'get_swap_prober' [-Wimplicit-function-declaration] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use pluralized translations.Lauri Nurmi2014-07-281-3/+8
|
* various: erase all traces of the long-obsolete ext filesystemBenno Schulenberg2014-07-281-10/+3Star
| | | | | | The same argument as for xiafs: dead for over ten years. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* various: erase all traces of the long-obsolete xiafsBenno Schulenberg2014-07-281-5/+0Star
| | | | | | | | The xiafs filesystem was removed from the kernel fifteen years ago, and any kernel that contained it reached end of life ten years ago. It's time to stop mentioning it in the mount man page and elsewhere. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: improve some wordings in the man page of mountBenno Schulenberg2014-07-281-159/+177
| | | | | | | Also sort the command-line options alphabetically (with the customary exception of -V and -h). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: fix some things that were overlooked during the first passBenno Schulenberg2014-07-2810-212/+260
| | | | | | | Mainly more option sorting, some formatting adjustments, and the adding of a missing --version here and there. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mount: clean up -t info in mount.8 and fstab.5Karel Zak2014-07-252-118/+45Star
| | | | | | | | | * remove the huge and unmaintained list of filesystems, just keep only very basic FS types in the man pages * add info about command delimited lists to fstab.5 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't use /{proc,ext}/filesystems when more fs types specifiedKarel Zak2014-07-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | # mkfs.ext4 /dev/sda1 # mount -t foo,bar /dev/sda1 /mnt successfully mount the device, this is unexpected as extN is no between wanted (by -t specified) filesystems. Summary about -t: * "mount -t foo" mount(2) with "foo" type * "mount -t foo,bar" try mount(2) with "foo" or "bar" * "mount -t foo,auto" try mount(2) with "foo" or ask libblkid for the type * "mount -t nofoo,bar" try types from /{etc,proc}/filesystems, but exclude "foo" and "bar" Note that more filesystems may be specified in fstab (as comma delimited list). The stuff from fstab is always interpreted as list and never as a pattern ("no" prefix makes no sense in fstab). Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: don't print errors as data in smartcols tableKarel Zak2014-07-221-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: don't use empty strings for smartcols outputKarel Zak2014-07-221-6/+2Star
| | | | | | | The libsmartcols is smart enough to accept NULL for empty fields rather than empty strings. Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: share get_swap_prober() with swaplabel to print uuid and labelSami Kerola2014-07-224-6/+92
| | | | | | | | | | | | The swapon(8) listing was almost complete, apart from label and uuid. This change moves the code from swaplabel(8) to shared scope to be used for printouts in other swap commands, such as swapon. Adding this feature to lsblk(8) was a consideration, but lsblk is not interested of swapfiles, so the swapon seems like a better option to add this information. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: bring one more man page closer to standard formattingBenno Schulenberg2014-07-221-71/+73
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* prlimit: remove repeating words from man pageKarel Zak2014-07-211-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: bring eight more man pages closer to standard formattingBenno Schulenberg2014-07-218-245/+279
| | | | | | | | | | Also, for chcpu, the options -c, -d, -e and -g are mutually exclusive, and for the mode argument the option -p is not optional. For ldattach, use the standard options separator ", " instead of the unusual " | ". And add the missing --version to several of the pages. Besides, improve the wording and the consistency of the spacing. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: bring five more man pages closer to standard formattingBenno Schulenberg2014-07-215-71/+77
| | | | | | | Also, for renice, adapt the descriptions to the behaviour: the -g, -p and -u options do not actually need to be followed by any ID. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mount: update info about mtab in mount.8Karel Zak2014-07-211-29/+19Star
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* prlimit: clean up columns[] usageKarel Zak2014-07-181-8/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: clean up columns[] usageKarel Zak2014-07-181-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: clean up columns[] usageKarel Zak2014-07-181-7/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: clean up columns[] usageKarel Zak2014-07-181-5/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: fix memory leak [coverity scan]Karel Zak2014-07-171-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: fix memory leak [coverity scan]Karel Zak2014-07-171-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: bring four more man pages closer to standard formattingBenno Schulenberg2014-07-174-53/+65
| | | | | | | | In the IPC man pages strictly adhere to the memory, queue, semaphore order, to reduce disorientation. And for 'ipcmk', the arguments for -M and -S and -p are not optional. Add --version for 'mountpoint'. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fstrim: avoid TOCTOU raceSami Kerola2014-07-171-7/+6Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fallocate: avoid unnecessary computationSami Kerola2014-07-171-11/+10Star
| | | | | | | | | Where POSIX_FADV_SEQUENTIAL and HAVE_POSIX_FADVISE are not available it is waste of resources to have variables that are meaningful only for posix_fadvise(). Also initialize the variables immediately to correct values, and since cachesz is never changed mark it read only. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: bring some more man pages closer to standard formattingBenno Schulenberg2014-07-163-70/+82
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: mount -o nouser is not useful, be clearer about thatBenno Schulenberg2014-07-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: many tiny formatting and wording improvements to man page of mountBenno Schulenberg2014-07-141-495/+490Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: improve formatting and wording of a few man pagesBenno Schulenberg2014-07-142-90/+90
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lscpu: avoid double freeSami Kerola2014-07-131-1/+1
| | | | | | The double free was possible for architectures other than x86_64 or i386. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: avoid alloca() use xmalloc() insteadSami Kerola2014-07-131-1/+3
| | | | | | | | | | | | The getgroups() can return up to NGROUPS_MAX supplementary groups, that is (since kernel 2.6.3) 65536 in total. The git_t is 4 bytes, so maximum request is 256 kilobytes. When a system happen to have memory preasure alloca() may not be able to allocate enough memory, making debugging unnecessarily difficult. IMHO 64 pages is significant enough amount of memory to be properly error checked at a time of allocation. Reference: http://www.gnu.org/software/libc/manual/html_node/Disadvantages-of-Alloca.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: avoid unnecessary variable assignmentSami Kerola2014-07-131-1/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lscpu: avoid use of bzero() in favor of memset()Sami Kerola2014-07-131-1/+1
| | | | | | The bzero() is marked as LEGACY in POSIX.1-2001. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: fix some typosSami Kerola2014-07-131-1/+1
| | | | | | | Found with misspell-check version 2.0d. Reference: https://github.com/lyda/misspell-check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* swapon: mark --sumarry as deprecatedKarel Zak2014-06-302-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: align --summary fieldsSami Kerola2014-06-301-1/+1
| | | | | | | | | | | | This commit makes partitions and files to have remaining three columns aligned. Below print out demonstrates earlier misalignment. $ swapon -s Filename Type Size Used Priority /dev/sda2 partition 4194300 0 3 /home/src/util-linux/newswap file 496 0 -1 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* umount: slightly improve the man pageBenno Schulenberg2014-06-301-13/+13
| | | | | | Remove some stray words from option arguments. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fallocate: use O_CREAT only for the default behaviorKarel Zak2014-06-261-1/+3
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: fix check of number of argumentsBernhard Voelker2014-06-261-9/+9
| | | | Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* fallocate: clarify usage()Pádraig Brady2014-06-261-7/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: use err_exclusive_options(), cleanup getopt_long() stuffKarel Zak2014-06-262-23/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: make man page readable for humansKarel Zak2014-06-261-28/+41
| | | | | | | | Well, let's copy & past from fallocate(2) syscall man page rather than try to be creative with another description for the flags. Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>