Karel Zak
ce4dd666f4
libmount: add support to parse /proc/swaps
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 13:20:32 +02:00
Karel Zak
7104bedb78
libmount: clean up MNT_FMT_* usage in parser
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 11:32:12 +02:00
Karel Zak
72bec4d0dd
mount: (old) check for LD_FLAGS_AUTOCLEAR more carefully
...
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=803799
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-02 17:34:07 +02:00
Karel Zak
6219c25ecb
lib/loopdev: more robust initialization
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-02 17:33:41 +02:00
Karel Zak
8063efea36
rtcwake: tiny coding style change
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-02 13:21:33 +02:00
Sami Kerola
d2ec3e33f1
script: error in usage() output
...
Error originates to commit 3ff526391f
which is bit more than year, and part or releases v2.20 & v2.21.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-02 13:14:20 +02:00
Sami Kerola
73aa889479
tests: hwclock: locate ntpdate by using path
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-02 13:14:20 +02:00
Paul Fox
1707576155
rtcwake: only invoke RTC_AIE_ON/OFF ioctls in pairs
...
many rtc drivers don't implement the RTC_AIE_ON/OFF ioctls at all --
so if we never tried to enable the alarm interrupt, don't try to
disable it later.
Signed-off-by: Paul Fox <pgf@laptop.org>
2012-04-02 13:14:00 +02:00
Karel Zak
a3ef250e90
delpart: improve error messages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:57:47 +02:00
Karel Zak
0392dcf920
addpart: improve error messages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:56:28 +02:00
Sami Kerola
7e08b7d3ce
tools: ko-release: make scripts bourne sh compliant [checkbashisms]
...
$ checkbashisms ko-release-gen
possible bashism in ko-release-gen line 31 ('function' is useless):
function die {
possible bashism in ko-release-gen line 36 ('function' is useless):
function add_file {
possible bashism in ko-release-gen line 68 ('function' is useless):
function add_html_dir {
possible bashism in ko-release-gen line 72 (brace expansion):
for fl in $(ls $src/*.{html,css,png}); do
$ checkbashisms ko-release-push
possible bashism in ko-release-push line 29 ('function' is useless):
function die {
possible bashism in ko-release-push line 34 ('function' is useless):
function push_file {
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:13 +02:00
Sami Kerola
8313455161
tools: config-gen: make scripts bourne sh compliant [checkbashisms]
...
$ checkbashisms config-gen
script config-gen does not appear to be a /bin/sh script
possible bashism in config-gen line 27 (export foo=bar should be foo=bar; export foo):
export CFLAGS="$CFLAGS"
$ checkbashisms config-gen-functions.sh
possible bashism in config-gen-functions.sh line 14 ('function' is useless):
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:13 +02:00
Sami Kerola
8b32e57f29
tools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms]
...
script checkconfig.sh does not appear to be a /bin/sh script
possible bashism in checkconfig.sh line 14 ('function' is useless):
function die() {
possible bashism in checkconfig.sh line 27 ('((' should be '$(('):
while (( "$#" )); do
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
b0660441de
reset: make scripts bourne sh compliant [checkbashisms]
...
In addition strict compliance the commit will take variable name
quoting, and $(command) substitution in use.
$ checkbashisms reset reset.033c
possible bashism in reset line 11 ('$[' should be '$(('):
bot=$[ ${LINES:-`tput lines`} - 1 ]
possible bashism in reset.033c line 11 (echo -e):
echo -e \\033c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
47a9edbd6d
fstrim: add --version and align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
13814e3697
findmnt: remove dublicate usage() line
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
584aed6b02
fallocate: add --version and align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
1275d8a1c1
swaplabel: add --version and align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
2a11944f16
fsck.minix: fix printf format warning
...
fsck.minix.c:1302:3: warning: ISO C does not support the '%m' gnu_printf format [-Wformat]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
a2bfda30ba
fsck.minix: clean up coding style
...
$ indent -linux -psl -blf disk-utils/fsck.minix.c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
78ecf61b0e
fsck.minix: align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
d4a573bc7b
fsck.minix: use rpmatch() for yes/no question
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
891327c091
fsck.minix: use symbolic exit codes
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
922ec175e5
fsck.cramfs: add long options
...
And align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
397f499613
pg: align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
b6415f1243
pg: correct version printing in help screen
...
Commit also adds -V option.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
cd12136371
raw: clean up coding style
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
d5fc1b1581
raw: check numeric user inputs
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
16d8a9c967
raw: use pathnames.h for file locations
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
82b7ef3671
raw: use libc error printing facilities
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
44e535353e
raw: use symbolic exit numbers
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
1e0aef8257
raw: add long options and version printing
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
7c7c8bc53b
raw: align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
04874274a5
delpart: align with util-linux coding standards
...
Add long options and usage function, use gnu errror printing
facilities and validate inputs.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
7911302085
addpart: align with util-linux coding standards
...
Add long options and usage function, use gnu errror printing
facilities and validate inputs.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
72bb1cc932
partx: add --version option
...
Th commit 8275b7326e
added --version to
usage() but not as working option.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
6a801e1a38
setterm: correct manual page reference
...
An error from commit faa0548de4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
efe030d66c
findfs: add --version & align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:11 +02:00
Sami Kerola
5cc12c4090
findmnt: add --version & align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:11 +02:00
Sami Kerola
30b61b7bd7
mountpoint: add --version & align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:11 +02:00
Karel Zak
f568e7934a
hexdump: use strtosize_or_err()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:18:54 +02:00
Karel Zak
e9e426eb78
losetup: use strtosize_or_err()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:18:30 +02:00
Karel Zak
28c710217c
fstrim: use strtosize_or_err()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:18:18 +02:00
Karel Zak
99727496ed
wipefs: use strtosize_or_err()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:17:49 +02:00
Karel Zak
3c2662d565
blkid: use strtosize_or_err()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:17:36 +02:00
Karel Zak
a99c913091
lib/strutils: add strtosize_or_err, clean up
...
* add strtosize_or_err(), we use strtosize() + err() on many places
* add STRTOXX_EXIT_CODE to overwrite the default EXIT_FAILURE
* remove else-after-noreturn (e.g. if (foo) err(...); else err(...))
* clean up indent...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:11:31 +02:00
Bernhard Voelker
d636d6d82a
docs: clarify KiB vs. KB in man pages
...
Update the man pages of blkid, wipefs, fallocate, fstrim, losetup
and hexdump to clarify the suffixes for the numerical values of the
offset and size/length arguments regarding KiB=1024 vs KB=1000.
Also mention the ZiB/YiB and ZB/YB suffixes supported by strtosize().
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-03-30 15:23:32 +02:00
Karel Zak
916a743891
tools: improve ko-release-* scripts
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 13:44:11 +02:00
Karel Zak
fab66da531
blkid: add note about variable tags and devices order.
...
Reported-by: Michael Conrad <mconrad@intellitree.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-29 15:09:54 +02:00
Karel Zak
a36e9a9408
build-sys: move obsolete lib/fsprobe to mount/
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-27 12:23:07 +02:00