summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* textual: harmonize some loop-device error messagesBenno Schulenberg2013-06-071-6/+6
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: standardize the spelling of "superuser"Benno Schulenberg2013-06-071-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* libmount: more robust options string parsingKarel Zak2013-05-301-0/+2
| | | | | | | | | # mount -o=rw /dev/sdb /mnt/test mount: libmount/src/optmap.c:212: mnt_optmap_get_entry: Assertion `namelen' failed. Aborted (core dumped) Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=968786 Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add virtualization typesKarel Zak2013-05-201-9/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: detect more hypervisor vendorsOndrej Oprala2013-05-204-16/+354
| | | | | | | | [kzak@redhat.com: - cleanup coding style, - use path_exist()] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use warn() to print cmos errorsKarel Zak2013-05-141-8/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chcpu: clean up error messagesKarel Zak2013-05-141-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* standard SEE ALSO section of man pagesMike Frysinger2013-05-132-4/+4
| | | | | | | | The standard format is to seperate each entry with a comma, and for each one to be on a line by itself. Most util-linux pages follow this, but a few do not. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* losetup: add --raw and --noheadingsKarel Zak2013-05-132-12/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: use warn_size() for regular files onlyKarel Zak2013-05-131-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use MS_SILENT for /{proc,etc}/filesystemsKarel Zak2013-05-091-1/+2
| | | | | | | | mount(8) needs to be doing silent mounts when doing this brute forcing or when the filesystem is not explicitly specified. Reported-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add colormode_or_err()Karel Zak2013-05-071-6/+3Star
| | | | | | ... to make the code easy to use in utils. Signed-off-by: Karel Zak <kzak@redhat.com>
* prlimit: delete rem_prlim prototypeDavidlohr Bueso2013-05-061-12/+8Star
| | | | | | We can just move the function up before any of its callers. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* dmesg: fix usage() typoSami Kerola2013-05-061-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: support --color[={auto,always,never}]Karel Zak2013-05-062-8/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fallocate: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* wdctl: check writing to a file descriptor was successfulSami Kerola2013-04-261-2/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: check writing to a file was successfulSami Kerola2013-04-261-2/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setsid: exit when control terminal cannot be setSami Kerola2013-04-261-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: allow login and group name option argumentsSami Kerola2013-04-262-14/+34
| | | | | | For an average user names are easier to use than uid and gid numbers. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* blkid, hwclock, ldattach: use program_invocation_short_nameSami Kerola2013-04-262-4/+0Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Fix various typosYuri Chornoivan2013-04-262-2/+2
|
* rtcwake: pass -h to shutdownMike Frysinger2013-04-251-1/+2
| | | | | | | The sysvinit shutdown requires you use -h when using -H or -P. Other inits just don't seem to care. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* dmesg: minor cleanup of EXCL_xxx_ERR macrosAndrii Bordunov2013-04-231-3/+0Star
| | | | | | | | Delete EXCL_ACT_ERR and EXCL_SYS_ERR defines: usage is removed in 43d2eeef5dd3a64c372dbf60e4a32aa9e97b4645: "dmesg: use err_exclusive_options()" Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: add support for "freeze" modeKarel Zak2013-04-232-0/+7
| | | | | | | Supported by Linux since 3.9 (upstream commit 7e73c5ae6e7991a6c01f6d096ff8afaef4458c36). Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: use devno to identify --all-target devicesKarel Zak2013-04-231-5/+4Star
| | | | | | | | | | | | | | # mount -t tmpfs tmp /mnt/A # mount --bind /mnt/A /mnt/B # mount -t tmpfs tmp /mnt/C the command: umount --all-targets /mnt/A has to umount only A and B, but not C. The C is a another filesystem. Signed-off-by: Karel Zak <kzak@redhat.com>
* include: fix SYS_{unshare,nsenter} usageKarel Zak2013-04-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: set 32-bit / 64-bit for ppcKarel Zak2013-04-171-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-cytuneKarel Zak2013-04-101-5/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add Model nameKarel Zak2013-04-101-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* loopdev: sync capacity after setting itJeff Mahoney2013-04-092-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I recently tried to mount an hfsplus file system from an image file with a partition table by using the loop offset and sizelimit options to specify the location of the file system. hfsplus stores some metadata at a set offset from the end of the partition, so it's sensitive to the device size reported by the kernel. It worked with this: But failed with this: /dev/loop0: [0089]:2 (<imagefile>), offset 32768, sizelimit 102400000 /dev/loop1: [0089]:2 (<imagefile>), offset 32768, sizelimit 102400000 /proc/partitions shows the correct number of blocks to match the sizelimit. But if I set a breakpoint in mount before the mount syscall, I could see: 102400000 102432768 The kernel loop driver will set the gendisk capacity of the device at LOOP_SET_STATUS64 but won't sync it to the block device until one of two conditions are met: All open file descriptors referring to the device are closed (and it will sync when re-opened) or if the LOOP_SET_CAPACITY ioctl is called to sync it. Since mount opens the device and passes it directly to the mount syscall after LOOP_SET_STATUS64 without closing and reopening it, the sizelimit argument is effectively ignroed. The capacity needs to be synced immediately for it to work as expected. This patch adds the LOOP_SET_CAPACITY call to loopctx_setup_device since the device isn't yet released to the user, so it's safe to sync the capacity immediately. [kzak@redhat.com: - port to the current git HEAD, - use uint64_t] Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* 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>