summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* lib/loopdev: use warn_unused_result forimportant functionsKarel Zak2012-06-211-6/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix compiler warning [-Wsign-compare]Karel Zak2012-06-191-1/+1
| | | | | | | | lscpu.c: In function ‘has_pci_device’: lscpu.c:425:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lscpu.c:425:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk24' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2012-06-198-43/+133
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2012wk24' of git://github.com/kerolasa/lelux-utiliteetit: (24 commits) more: fix pointer wrap around compiler warnings more: fix search repetition regression lscpu: values in /proc/bus/pci/devices are always unsigned scriptreplay: fix compiler format warning lib/mbsalign: abort() when non-expected case is encountered mkfs.cramfs: disallow unknown command line options fsck.cramfs: disallow unknown command line options setarch: disallow unknown command line options hexdump: print sensible message when all input file arguments fail mount: (new) use exclusive_option() dmesg: use exclusive_option() wipefs: use exclusive_option() wdctl: correct manual section reference wdctl: use exclusive_option() prlimit: use exclusive_option() lscpu: use exclusive_option() losetup: use exclusive_option() chcpu: use exclusive_option() lsblk: use exclusive_option() findmnt: use exclusive_option() ...
| * lscpu: values in /proc/bus/pci/devices are always unsignedSami Kerola2012-06-171-1/+1
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * setarch: disallow unknown command line optionsSami Kerola2012-06-171-1/+6
| | | | | | | | | | | | | | | | | | | | Exit with instruction to run --help if unknown option is encountered. Before the following example printed error, but resulted to an attempt to run argument. $ x86_64 -x ls Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * mount: (new) use exclusive_option()Sami Kerola2012-06-171-7/+28
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * dmesg: use exclusive_option()Sami Kerola2012-06-171-6/+18
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * wdctl: correct manual section referenceSami Kerola2012-06-171-1/+1
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * wdctl: use exclusive_option()Sami Kerola2012-06-171-3/+10
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * prlimit: use exclusive_option()Sami Kerola2012-06-171-6/+10
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * lscpu: use exclusive_option()Sami Kerola2012-06-171-8/+21
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * losetup: use exclusive_option()Sami Kerola2012-06-171-6/+20
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * chcpu: use exclusive_option()Sami Kerola2012-06-171-4/+18
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | mount: (new) add note about unsupported 'ignore' fstype to fstab.5Karel Zak2012-06-191-7/+10
|/ | | | | Reported-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk23' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2012-06-152-3/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit: lsblk: use blkdev_scsi_type_to_name() blkdev: add blkdev_scsi_type_to_name() wipefs: use symbolic value for markup mode eject: inform if CD-ROM drive is not ready docs: clean up partx.8 manual include: fix void pointer arithmetics warnings sysfs: fix printf format warnings build: fix unused parameter warnings build: fix redundant redeclaration warnings include: fix spurious list.h warnings uuidd: use output redirection which works [checkbashisms] blkid: fix realloc memory leak [cppcheck] setarch: do not use -1 as array index [cppcheck]
| * eject: inform if CD-ROM drive is not readySami Kerola2012-06-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Include file (see linux/cdrom.h lines 395 and 398) suggests ioctl() can return CDS_NO_INFO and CDS_DRIVE_NOT_READY, which where ignored. This commit will tell user what is going on. The commit will also make eject to crash in ioctl() will return unexpected value. Reference: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=include/linux/cdrom.h;h=dfd7f187c351440d2ffa81050e46ed2602877f73;hb=HEAD Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * setarch: do not use -1 as array index [cppcheck]Sami Kerola2012-06-091-3/+3
| | | | | | | | | | | | | | | | | | Negative array index does technically work, but looks awkward and can confuse static analyser such as cppcheck. [sys-utils/setarch.c:267]: (error) Array index -1 is out of bounds Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | setsid: fix off-by-one error in execvp callBernhard Voelker2012-06-151-1/+1
| | | | | | | | | | | | Bug introduced during --ctty implementation by v2.21-112-g8a2f04d. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* | flock: user-configurable exit codeJan \"Yenya\" Kasprzak2012-06-152-13/+32
| | | | | | | | | | | | | | | | | | When locking the file fails with -n or -w option, caller has no way to distinguish between the exit code 1 of the -c command, and the exit code 1 of flock(1) caused by the conflicting lock. Add a new -E <exitcode> (--conflict-exit-code) option to set the exit code for the case of locking failure to any value.
* | mount: (new) allow sloppy for non-rootKarel Zak2012-06-141-1/+1
| | | | | | | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=825836 Signed-off-by: Karel Zak <kzak@redhat.com>
* | eject: cleanup umount codeKarel Zak2012-06-131-19/+19
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | eject: don't try to use non-device pathKarel Zak2012-06-131-1/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | eject: add --no-partitions-unmountKarel Zak2012-06-132-29/+50
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | losetup: warn about backing file sizeKarel Zak2012-06-121-2/+25
|/ | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=730266 Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk22' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2012-06-056-147/+183
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2012wk22' of git://github.com/kerolasa/lelux-utiliteetit: docs: clean up getopt.1 manual docs: clean up dmesg.1 manual docs: clean up chcpu.8 manual fileutils: xmkstemp() interface change docs: fix all man page groff warnings tools: add checkmans.sh docs: clean up wdctl.8 manual docs: clean up login.1 manual login: allow TTYGROUP name begin by number build-sys: add su executable to .gitignore logindefs: change getlogindefs_num() to return unsigned long Conflicts: login-utils/su.c sys-utils/dmesg.1
| * docs: clean up dmesg.1 manualSami Kerola2012-06-021-68/+86
| | | | | | | | | | | | | | | | | | | | | | * Add lightness to synopsis. * Add few missing italic highlights to text segments which refer command line argument(s). * Turn off bold where ever possible (makes text unnecessarily heavy). * Add spaces after dots (English spacing). * Use URL and email macros where appropriate. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: clean up chcpu.8 manualSami Kerola2012-06-021-42/+53
| | | | | | | | | | | | | | | | | | | | | | * Add lightness to synopsis. * Use argument and parameter highlights consistently. * Indent dispatch modes. * Add spaces after dots (English spacing). * Add line break macros. * Use URL and email macros where appropriate. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: fix all man page groff warningsSami Kerola2012-06-023-7/+7
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: clean up wdctl.8 manualSami Kerola2012-06-021-30/+37
| | | | | | | | | | | | Align with Documentation/howto-man-page.txt Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | dmesg: fix typo in man pageKarel Zak2012-06-051-1/+1
|/ | | | | Reported-by: Hemant Borole <hemantborole@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* setsid: Include <sys/ioctl.h> instead of <termio.h>.Thomas Schwinge2012-05-291-1/+1
| | | | Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
* mount: (new) fix MS_REC usageKarel Zak2012-05-281-1/+1
| | | | | | | | # mount -R /mnt/test /mnt/test mount: propagation flags (--make-* or --bind options) are mutually exclusive Reported-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add MNT_ERR_MOUNTOPTKarel Zak2012-05-281-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (new) add loopdev specific error messageKarel Zak2012-05-281-3/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: more verbose failed setup error mesageKarel Zak2012-05-281-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: add --onelineKarel Zak2012-05-222-12/+62
| | | | | | | | | | | | | * remove --pairs, it was usable for flags table only * one line for each watchdog device For example: # wdctl --noident --noflags --oneline /dev/watchdog: TIMEOUT="30" TIMELEFT="2" Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: allow to specify more than one deviceKarel Zak2012-05-222-43/+51
| | | | | | | | * remove -d <device> option * support wdctl [options] [<device> ...] usage Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: add --flags-only and optional column DEVICEKarel Zak2012-05-182-4/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* eject: allow to address device by LABEL/UUIDKarel Zak2012-05-182-3/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sys-utils: cleanup strtoxx_or_err()Karel Zak2012-05-159-27/+19Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: rename writeall.h to all-io.hPetr Uzel2012-05-151-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* build-sys: add BUILD_WDCTL, check for linux/watchdog.hKarel Zak2012-05-041-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: add man pageKarel Zak2012-05-042-0/+51
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: make timeouts output more parsableKarel Zak2012-05-041-33/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: rewrite to use lib/ttKarel Zak2012-05-032-93/+373
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: align with other util-linux commandsSami Kerola2012-05-031-3/+7
| | | | | | | | | * Add watchdog device path to pathnames.h * Check output stream status at exit. * Adjust usage() notation to follow howto file. * Retire numeric return value. Signed-off-by: Sami Kerola <kerolasa@iki.fi>