]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Wed, 15 Aug 2012 15:59:56 +0000 (17:59 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 Aug 2012 15:56:47 +0000 (17:56 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
David Prévot [Wed, 15 Aug 2012 15:09:47 +0000 (17:09 +0200)]
po: update fr.po (from translationproject.org)
Karel Zak [Wed, 15 Aug 2012 15:04:41 +0000 (17:04 +0200)]
build-sys: add -Wmissing-declarations, sort warning options
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 Aug 2012 14:44:18 +0000 (16:44 +0200)]
tests: update build-sys tests
- remove tests programs (no more compiled by default)
- add resizepart
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 15 Aug 2012 14:06:19 +0000 (16:06 +0200)]
uuidd: improve systemd unit files
- use $usrsbin_execdir
- add [Install] section
- use long options
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 14 Aug 2012 23:53:40 +0000 (01:53 +0200)]
build-sys: expand paths at make time
autoconf docs about *dir variables (e.g bindir):
... A corollary is that you should not use these variables except in
makefiles...
...you should not rely on AC_CONFIG_FILES to replace bindir and friends
in your shell scripts and other files; instead, let make manage their
replacement.
Signed-off-by: Karel Zak <kzak@redhat.com>
B Watson [Tue, 14 Aug 2012 16:27:09 +0000 (18:27 +0200)]
column: --separator segfaults
The --separator and --columns long options in util-linux-2.21.2 and in
a git clone from 5 minutes ago, don't work:
$ echo foobar | column -s x
foobar
$ echo foobar | column -c 10
foobar
$ echo foobar | column --separator=x
column: option '--separator' doesn't allow an argument
$ echo foobar | column --separator x
Segmentation fault
$ echo foobar | column --columns 10
column: bad columns width value: '(null)': Invalid argument
$ echo foobar | column --columns=10
column: option '--columns' doesn't allow an argument
Looks like a simple case of missing has_arg flag in the "struct
option" initialization for these two options. The patch just adds the
flag. I haven't done thorough testing of the patched code, but it
seems to work OK and it no longer segfaults or tries to dereference a
null pointer.
Signed-off-by: Karel Zak <kzak@redhat.com>
Bernhard Voelker [Tue, 14 Aug 2012 07:01:45 +0000 (09:01 +0200)]
lib/sysfs: make sysfs_partno_to_devno better readable
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Karel Zak [Tue, 14 Aug 2012 16:14:35 +0000 (18:14 +0200)]
lsblk: add WWN, improve udev support
* read WWN from udev DB
* use *_ENC properties from udev DB to get original unmodified
strings (otherwise for example blank space is replaced with '_' in
ID_FS_LABEL)
* always read from udev, libblkid is fallback solution only
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 14 Aug 2012 06:33:39 +0000 (08:33 +0200)]
resizepart: remove debug message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 13 Aug 2012 20:10:14 +0000 (22:10 +0200)]
resizepart: add new command
This is a simple wrapper for BLKPG_RESIZE_PARTITION (since kernel 3.6).
Co-Author: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 13 Aug 2012 20:06:18 +0000 (22:06 +0200)]
lib/sysfs; add sysfs_partno_to_devno()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 13 Aug 2012 19:57:34 +0000 (21:57 +0200)]
lib/mangle: remove unused variable
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 13 Aug 2012 19:11:37 +0000 (21:11 +0200)]
lib/sysfs: expect p<N> suffix for partitions
... so for example lsblk(8) will see partitioned loop devices
loop0 7:0 0 80G 0 loop
├─loop0p1 259:0 0 100M 0 loop
└─loop0p2 259:1 0 79.9G 0 loop
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 13 Aug 2012 14:25:01 +0000 (16:25 +0200)]
libmount: fix unmangle code
old version:
/mnt/ugly/te\134st\134 -> /mnt/ugly/te\st\134
fixed version:
/mnt/ugly/te\134st\134 -> /mnt/ugly/te\st\
Reported-by: Naja Melan <najamelan@autistici.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Mon, 13 Aug 2012 11:55:30 +0000 (13:55 +0200)]
dmesg: fix kmsg read if read returns EPIPE
The /dev/kmsg can return EPIPE if current record has beed modified
while reading.
For init_kmsg, it cause switch to DMESG_METHOD_SYSLOG
(which is not expected) and later it can truncate output.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Dave Reisner [Mon, 6 Aug 2012 15:16:12 +0000 (11:16 -0400)]
eject: return proper 0/1 from eject_cdrom()
main() expects this method to return 0 for failure and 1 for success, as
the other eject_*() methods do. Add the missing comparison of ioctl() >= 0
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Samuel Thibault [Wed, 8 Aug 2012 15:19:43 +0000 (17:19 +0200)]
Fix non-Linux build
loopdev.c, test_pager, and get_max_number_of_cpus() are linux-specific.
get_linux_version will only work on Linux, let's introduce
system_supports_ext4_ext2() which assumes that mounting ext2 with ext4
is not supported on non-Linux systems.
[kzak@redhat.com: - use #ifdef SYS_sched_getaffinity rather than __linux__]
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 8 Aug 2012 11:48:28 +0000 (13:48 +0200)]
fdisk: aix: fix warning
Fixes:
warning: no previous prototype for ‘aix_nolabel’
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Heiko Carstens [Wed, 8 Aug 2012 08:52:47 +0000 (10:52 +0200)]
lscpu: limit options --all, --online, --offline to parsable and extended output
Passing the --all, --online or --offline options for the output summary
doesn't make much sense. It should be limited to the two list output options.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Karel Zak [Mon, 13 Aug 2012 12:23:04 +0000 (14:23 +0200)]
lib/tt: always escape '\' to simplify parsing in scripts
The commands echo(1) and printf(1) are usable for escape sequences
decoding, for example
for x in $(findmnt --noheading --raw --output TARGET); do
printf "%b" $x
done
but it's necessary to escape all '\' chars, otherwise for example \b
in foo\bar will be interpreted as backspace. It means that for example
findmnt(8) has to use \x5c for the backslash.
# findmnt --noheading --raw --output TARGET /dev/sda1
/mnt/ugly/foo\x5cbar
Reported-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 8 Aug 2012 06:58:28 +0000 (08:58 +0200)]
lib/tt: fix \x%02x usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 7 Aug 2012 09:19:54 +0000 (11:19 +0200)]
include/tt: improve work with non-utf8 chars
Reported-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 4 Aug 2012 07:33:39 +0000 (09:33 +0200)]
build-sys: add files make check generates in gitignore
The config/test-driver appears at automake stage, rest after running
'make check'.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 4 Aug 2012 07:33:40 +0000 (09:33 +0200)]
vipw: make vim writebackup mode work
Some editors, such as Vim with 'writebackup' mode enabled, use "atomic
save" in which the old file is deleted and a new one with the same name
created in its place. The vipw tries to detect if such happen by
looking hard temporary file link count, when it is zero reopen
temporary file by using it's path.
Reported-by: Mantas Mikulėnas <grawity@gmail.com>
References: http://www.spinics.net/lists/util-linux-ng/msg06666.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Aug 2012 07:33:38 +0000 (09:33 +0200)]
docs: add sys-utils/umount.8 manual page
The man page is almost exact copy of mount-deprecated/umount.8. This
version mentions long options, and has the options in same order as
they are mentioned in usage() output. Rest of the minor changes make
groff slightly nicer e.g. use .PP instead of empty line for paragraph
marker.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Aug 2012 07:33:37 +0000 (09:33 +0200)]
docs: update TODO
Remove tasks that are done.
dmesg: --follow option
Reference:
0fd12a9697c2e01e3c2e1e558ff027cd2947ee94
build-sys: recursive build
Reference:
8772f8d7eeeb922bccee3376552c59d7148df7b4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 4 Aug 2012 07:33:36 +0000 (09:33 +0200)]
docs: ftp server does no longer support util-linux-ng
A symlink was probably removed from
ftp://ftp.kernel.org/pub/linux/utils/
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Mon, 6 Aug 2012 10:50:09 +0000 (12:50 +0200)]
lib/tt: count read cells, improve \x?? hex encoding
* use wcwidth() to count real number of columns required for
multibyte strings
* encode control characters with \x?? in raw and export (NAME=data) outputs
* use \x?? for controls and non-printable characters in the default outputs
* use \x?? to encode already existing hex sequences, for example
/mnt/ugly\x20space ---> /mnt/ugly\x5cx20space
this is not used in the default output, but in raw/export outputs
only (which is designed for scripts).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 6 Aug 2012 10:45:08 +0000 (12:45 +0200)]
mount: replace control chars in mountpoint name
For compatibility with coreutils and to avoid complex solutions in
mount output mount replaces control characters with '?'.
Note that the listing mode in mount(8) is in maintenance mode --
findmnt(8) provides more robust and better solutions.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Aug 2012 19:33:32 +0000 (21:33 +0200)]
docs: update tests docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Aug 2012 19:24:51 +0000 (21:24 +0200)]
tests: make compatible with autotools
The command 'make check' is called from 'make distcheck' (which is
used to generate official util-linux tarballs).
It means that tests/ stuff has to be compatible with autotools and
differentiate between source and build directories.
* remove run-nonroot.sh (merged into run.sh
* remove commands.sh.in
* all tests and top level run.sh accept --builddir and --srcdir
command line options
* functions.sh modified to use $top_builddir/tests for output files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 3 Aug 2012 14:24:51 +0000 (16:24 +0200)]
build-sys: add tests/run-nonroot.sh to automake file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Aug 2012 18:19:14 +0000 (20:19 +0200)]
build-sys: don't compile lib{mount,blkid} tests when --disable-static specified
The tests often depend on private (non-API) library functions.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 2 Aug 2012 17:25:00 +0000 (19:25 +0200)]
wdctl: tiny change to man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Harald Hoyer [Wed, 1 Aug 2012 11:39:06 +0000 (13:39 +0200)]
wdctl: add "--settimeout" to set the timeout
[kzak@redhat.com: - fix usage() and man page]
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Harald Hoyer <harald@redhat.com>
Karel Zak [Thu, 2 Aug 2012 15:39:14 +0000 (17:39 +0200)]
dmesg: fix kmsg usability detection
On old kernels (<3.5) kernel allows to open read-only /dev/kmsg for
root, but read() returns -EINVAL. It means that open() is not enough
to detect /dev/kmsg usability. We have to call read() (or epoll).
Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2012 17:00:30 +0000 (19:00 +0200)]
tests: add libmount optstr deduplicate
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2012 15:52:22 +0000 (17:52 +0200)]
libmount: deduplicate SELinux mount options
We already have a clue about SELinux specific mount options in libmount, so
it makes sense to deduplicate the options as Linux kernel does not
support duplicate SELinux options. (SELinux kernel stuff somehow
ignores standard Linux mount conventions...)
Requested-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2012 15:51:43 +0000 (17:51 +0200)]
libmount: add mnt_optstr_deduplicate_option()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2012 09:16:00 +0000 (11:16 +0200)]
tests: standardize fdisk headers in MBR tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Bernhard Voelker [Wed, 1 Aug 2012 08:35:34 +0000 (10:35 +0200)]
tests: blkid/md-raid1-part fails
[kzak@redhat.com: - I forgot to apply this part of the Bernhard's patch]
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Bernhard Voelker [Tue, 31 Jul 2012 06:24:13 +0000 (08:24 +0200)]
tests: cleanup ts_is_mounted
* tests/functions.sh (ts_is_mounted): Remove check for canonicalization
failure again, because it is now done by ts_canonicalize.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Bernhard Voelker [Tue, 31 Jul 2012 14:36:35 +0000 (16:36 +0200)]
tests: make blkid/md-raid1-part more robust
* tests/expected/blkid/mk-raid1-part: Replace major and minor number
of ID_PART_ENTRY_DISK by a special string. Add ID_FS_UUID and
ID_FS_UUID_ENC again, also with a special string.
* tests/ts/blkid/md-raid1-part: Before comparing the expected output
with the actual output, replace the values of ID_PART_ENTRY_DISK,
ID_FS_UUID and ID_FS_UUID_ENC with the speacial strings mentioned above.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Karel Zak [Tue, 31 Jul 2012 17:57:46 +0000 (19:57 +0200)]
tests: add non-dos mode fdisk test
Karel Zak [Tue, 31 Jul 2012 17:55:44 +0000 (19:55 +0200)]
build-sys: use slash for binaries in gitignore
.. otherwise git interprets binaries names as shell blog and apply
the pattern globally.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2012 17:07:37 +0000 (19:07 +0200)]
fdisk: cast before count size
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2012 17:02:47 +0000 (19:02 +0200)]
tests: add layout info to dos mode test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2012 15:34:15 +0000 (17:34 +0200)]
tests: rename doslabel test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jul 2012 16:37:54 +0000 (18:37 +0200)]
docs: update howto-tests.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jul 2012 16:19:20 +0000 (18:19 +0200)]
build-sys: add run.sh to make check for non-root users
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jul 2012 16:00:33 +0000 (18:00 +0200)]
tests: check for 'make check'
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jul 2012 15:59:16 +0000 (17:59 +0200)]
build-sys: move tests to check_PROGRAMS
Thanks to Mike Frysinger.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jul 2012 15:43:10 +0000 (17:43 +0200)]
tests: remove lt- prefixes
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Steven J. Magnani [Mon, 30 Jul 2012 12:24:07 +0000 (07:24 -0500)]
util-linux: Document new FAT options
Add man-page documentation for the new 'discard' and 'nfs' options
available for vfat/msdos filesystems.
Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Petr Uzel [Fri, 27 Jul 2012 11:15:54 +0000 (13:15 +0200)]
build-sys: include tools/git-version-gen in the tarball
tools/git-version-gen is called from AC_INIT. Include it
in the tarball to make it easier to autoreconf-igure the package.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Fri, 27 Jul 2012 10:09:01 +0000 (12:09 +0200)]
build-sys: fix description of utmpdump configure option
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Karel Zak [Mon, 30 Jul 2012 15:10:38 +0000 (17:10 +0200)]
tests: more robust symlinks usage
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Bernhard Voelker [Fri, 27 Jul 2012 09:00:17 +0000 (11:00 +0200)]
tests: use ts_is_mounted in mount/regfile
If the test directory is on a symlink, then mount/regfile failed because
it did not search for the mount point in /proc/mounts canonicalized.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Bernhard Voelker [Fri, 27 Jul 2012 08:35:01 +0000 (10:35 +0200)]
tests: search mount point in canonicalized form in /proc/mounts
* tests/functions.sh (ts_is_mounted): Enhance to resolve symlinks in
given mount point before grep'ing in /proc/mount.
If the test directory is on a symlink, then e.g. tests/ts/cramfs/doubles
failed because the kernel keeps the mount entry in a canonicalized form
in /proc/mounts while this function searched for it with the original
path name.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Karel Zak [Mon, 30 Jul 2012 12:57:29 +0000 (14:57 +0200)]
docs: add note about enabled kill(1) to v2.22-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Jul 2012 08:17:10 +0000 (10:17 +0200)]
docs: add note about partx output change
Signed-off-by: Karel Zak <kzak@redhat.com>
Bernhard Voelker [Fri, 27 Jul 2012 07:57:38 +0000 (09:57 +0200)]
doc: fix typo in v2.22-ReleaseNotes
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Milan Broz [Thu, 26 Jul 2012 13:52:07 +0000 (15:52 +0200)]
findmnt: support -o +<attr> for adding attribute to output fields.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Karel Zak [Fri, 27 Jul 2012 07:17:53 +0000 (09:17 +0200)]
tests: update non-lib build tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Jul 2012 07:04:55 +0000 (09:04 +0200)]
build-sys: fix build without libs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 22:56:28 +0000 (00:56 +0200)]
build-sys: add minisg COPYING files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 22:09:42 +0000 (00:09 +0200)]
build-sys: release++ (v2.22-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 22:07:11 +0000 (00:07 +0200)]
docs: add v2.22-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 20:23:09 +0000 (22:23 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 20:15:58 +0000 (22:15 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Wylmer Wang [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)]
po: update zh_CN.po (from translationproject.org)
Trần Ngọc Quân [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)]
po: update vi.po (from translationproject.org)
Benno Schulenberg [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)]
po: update nl.po (from translationproject.org)
David Prévot [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)]
po: update fr.po (from translationproject.org)
Arun Persaud [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)]
po: update de.po (from translationproject.org)
Karel Zak [Thu, 26 Jul 2012 19:49:42 +0000 (21:49 +0200)]
fdisk: sgi: use xcalloc()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 19:48:50 +0000 (21:48 +0200)]
su: use xstrdup()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 19:42:08 +0000 (21:42 +0200)]
tests: update build-sys tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 17:41:09 +0000 (19:41 +0200)]
tests: update partx, add missing whitespace
... probably removed by git-pull from Sami's repo :-(
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 17:40:36 +0000 (19:40 +0200)]
tests: update paths to helpers
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 17:04:30 +0000 (19:04 +0200)]
mount: remove unnecessary free()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 16:47:59 +0000 (18:47 +0200)]
tests: update blkid tests with fdisk output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 16:03:10 +0000 (18:03 +0200)]
fdisk: dos: mark unused parameters
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 15:56:39 +0000 (17:56 +0200)]
fdisk: mac: remove magic maclabel macro, mark unused parameters
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 15:52:30 +0000 (17:52 +0200)]
fdisk: bsd: mark unused parameters
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 15:47:08 +0000 (17:47 +0200)]
fdisk: aix: remove magic aixlabel macro, mark unused parameters
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Thu, 26 Jul 2012 14:16:57 +0000 (16:16 +0200)]
fdisk: fix menu
Commit
79c8a145ddff98d9c5bc70e67c5a861f67c50484 changed the numerical values of
fdisk_labeltype and broke the menu functionality, mixing main and expert menus.
Revert this change along with the label comment regarding it matching labeltype.
This is no longer valid since the original patch that lead to this modification
assumed that __probe_labels() would use these indices when creating a default
DOS/SUN disklabel, see http://www.spinics.net/lists/util-linux-ng/msg06509.html
Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Bernhard Voelker [Thu, 26 Jul 2012 14:10:23 +0000 (16:10 +0200)]
prlimit: improve error messages for bad --pid invocation
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Petr Uzel [Thu, 26 Jul 2012 14:04:28 +0000 (16:04 +0200)]
tests: update fdisk test (default output format changed)
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 26 Jul 2012 14:04:27 +0000 (16:04 +0200)]
fdisk: don't print CHS geometry unless DOS compatible mode is set
References: http://marc.info/?l=util-linux-ng&m=
134329693623430 &w=2
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 26 Jul 2012 14:04:26 +0000 (16:04 +0200)]
fdisk: always print total number of sectors
Print it no regardless on units_per_sector.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 26 Jul 2012 14:04:25 +0000 (16:04 +0200)]
fdisk: fix typo
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 26 Jul 2012 14:04:24 +0000 (16:04 +0200)]
fdisk: make grain global variable part of fdisk_context()
There is no reason for this to be global variable - it belongs
to the context.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Thu, 26 Jul 2012 14:41:30 +0000 (16:41 +0200)]
partx: support -o +<attr> for adding attribute to output fields
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Thu, 26 Jul 2012 13:52:05 +0000 (15:52 +0200)]
lsblk: support -o +<attr> for adding attribute to output fields.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Thu, 26 Jul 2012 13:52:04 +0000 (15:52 +0200)]
lib/strutils: add string_add_to_idarray() - parse and add to id list
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jul 2012 12:02:15 +0000 (14:02 +0200)]
dmesg: improve err handling code
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 25 Jul 2012 19:15:45 +0000 (21:15 +0200)]
docs: tell about irc channel
Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/3550
Signed-off-by: Sami Kerola <kerolasa@iki.fi>