]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
11 years agofsck: use less aggressive method to detect mounted devices
Karel Zak [Fri, 24 Aug 2012 16:41:50 +0000 (18:41 +0200)] 
fsck: use less aggressive method to detect mounted devices

We should not care about mountpoints in fsck if a device name
specified on command line, just check if the device is used somewhere
in /proc/self/mountinfo file.

Crazy people who use

fsck /mountpoint

have to specify the mountpoint by the same format as in their fstab --
symlinks canonicalization is not supported.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=850965
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: rewrite mnt_table_is_fs_mounted() to be less aggressive
Karel Zak [Fri, 24 Aug 2012 16:13:06 +0000 (18:13 +0200)] 
libmount: rewrite mnt_table_is_fs_mounted() to be less aggressive

The old implementation always canonicalizes target (mountpoint) path.
It's better to postpone this operation until the path is really
necessary (usually it's unnecessary), because readlink() on mountpoint
may trigger automounts.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: release++ (v2.22-rc2) v2.22-rc2
Karel Zak [Wed, 15 Aug 2012 16:05:00 +0000 (18:05 +0200)] 
build-sys: release++ (v2.22-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update v2.22-ReleaseNotes
Karel Zak [Wed, 15 Aug 2012 16:02:53 +0000 (18:02 +0200)] 
docs: update v2.22-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update AUTHORS file
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>
11 years agopo: merge changes
Karel Zak [Wed, 15 Aug 2012 15:56:47 +0000 (17:56 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: update fr.po (from translationproject.org)
David Prévot [Wed, 15 Aug 2012 15:09:47 +0000 (17:09 +0200)] 
po: update fr.po (from translationproject.org)

11 years agobuild-sys: add -Wmissing-declarations, sort warning options
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>
11 years agotests: update build-sys tests
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>
11 years agouuidd: improve systemd unit files
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>
11 years agobuild-sys: expand paths at make time
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>
11 years agocolumn: --separator segfaults
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>
11 years agolib/sysfs: make sysfs_partno_to_devno better readable
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>
11 years agolsblk: add WWN, improve udev support
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>
11 years agoresizepart: remove debug message
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>
11 years agoresizepart: add new command
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>
11 years agolib/sysfs; add sysfs_partno_to_devno()
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>
11 years agolib/mangle: remove unused variable
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>
11 years agolib/sysfs: expect p<N> suffix for partitions
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>
11 years agolibmount: fix unmangle code
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>
11 years agodmesg: fix kmsg read if read returns EPIPE
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>
11 years agoeject: return proper 0/1 from eject_cdrom()
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>
11 years agoFix non-Linux build
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>
11 years agofdisk: aix: fix warning
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>
11 years agolscpu: limit options --all, --online, --offline to parsable and extended output
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>
11 years agolib/tt: always escape '\' to simplify parsing in scripts
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>
11 years agolib/tt: fix \x%02x usage
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>
11 years agoinclude/tt: improve work with non-utf8 chars
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>
11 years agobuild-sys: add files make check generates in gitignore
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>
11 years agovipw: make vim writebackup mode work
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>
11 years agodocs: add sys-utils/umount.8 manual page
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>
11 years agodocs: update TODO
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>
11 years agodocs: ftp server does no longer support util-linux-ng
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>
11 years agolib/tt: count read cells, improve \x?? hex encoding
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>
11 years agomount: replace control chars in mountpoint name
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>
11 years agodocs: update tests docs
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>
11 years agotests: make compatible with autotools
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>
11 years agobuild-sys: add tests/run-nonroot.sh to automake file
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>
11 years agobuild-sys: don't compile lib{mount,blkid} tests when --disable-static specified
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>
11 years agowdctl: tiny change to man page
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>
11 years agowdctl: add "--settimeout" to set the timeout
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>
11 years agodmesg: fix kmsg usability detection
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>
11 years agotests: add libmount optstr deduplicate
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>
11 years agolibmount: deduplicate SELinux mount options
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>
11 years agolibmount: add mnt_optstr_deduplicate_option()
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>
11 years agotests: standardize fdisk headers in MBR tests
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>
11 years agotests: blkid/md-raid1-part fails
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>
11 years agotests: cleanup ts_is_mounted
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>
11 years agotests: make blkid/md-raid1-part more robust
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>
11 years agotests: add non-dos mode fdisk test
Karel Zak [Tue, 31 Jul 2012 17:57:46 +0000 (19:57 +0200)] 
tests: add non-dos mode fdisk test

11 years agobuild-sys: use slash for binaries in gitignore
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>
11 years agofdisk: cast before count size
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>
11 years agotests: add layout info to dos mode test
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>
11 years agotests: rename doslabel test
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>
11 years agodocs: update howto-tests.txt
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>
11 years agobuild-sys: add run.sh to make check for non-root users
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>
11 years agotests: check for 'make check'
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>
11 years agobuild-sys: move tests to check_PROGRAMS
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>
11 years agotests: remove lt- prefixes
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>
11 years agoutil-linux: Document new FAT options
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>
11 years agobuild-sys: include tools/git-version-gen in the tarball
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>
11 years agobuild-sys: fix description of utmpdump configure option
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>
11 years agotests: more robust symlinks usage
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>
11 years agotests: use ts_is_mounted in mount/regfile
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>
11 years agotests: search mount point in canonicalized form in /proc/mounts
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>
11 years agodocs: add note about enabled kill(1) to v2.22-ReleaseNotes
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>
11 years agodocs: add note about partx output change
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>
11 years agodoc: fix typo in v2.22-ReleaseNotes
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>
11 years agofindmnt: support -o +<attr> for adding attribute to output fields.
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>
11 years agotests: update non-lib build tests v2.22-rc1
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>
11 years agobuild-sys: fix build without libs
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>
11 years agobuild-sys: add minisg COPYING files
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>
11 years agobuild-sys: release++ (v2.22-rc1)
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>
11 years agodocs: add v2.22-ReleaseNotes
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>
11 years agodocs: update AUTHORS file
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>
11 years agopo: merge changes
Karel Zak [Thu, 26 Jul 2012 20:15:58 +0000 (22:15 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update zh_CN.po (from translationproject.org)

11 years agopo: update vi.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)

11 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update nl.po (from translationproject.org)

11 years agopo: update fr.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)

11 years agopo: update de.po (from translationproject.org)
Arun Persaud [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update de.po (from translationproject.org)

11 years agofdisk: sgi: use xcalloc()
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>
11 years agosu: use xstrdup()
Karel Zak [Thu, 26 Jul 2012 19:48:50 +0000 (21:48 +0200)] 
su: use xstrdup()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update build-sys tests
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>
11 years agotests: update partx, add missing whitespace
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>
11 years agotests: update paths to helpers
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>
11 years agomount: remove unnecessary free()
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>
11 years agotests: update blkid tests with fdisk output
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>
11 years agofdisk: dos: mark unused parameters
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>
11 years agofdisk: mac: remove magic maclabel macro, mark unused parameters
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>
11 years agofdisk: bsd: mark unused parameters
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>
11 years agofdisk: aix: remove magic aixlabel macro, mark unused parameters
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>
11 years agofdisk: fix menu
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>
11 years agoprlimit: improve error messages for bad --pid invocation
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>
11 years agotests: update fdisk test (default output format changed)
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>
11 years agofdisk: don't print CHS geometry unless DOS compatible mode is set
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>
11 years agofdisk: always print total number of sectors
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>
11 years agofdisk: fix typo
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>
11 years agofdisk: make grain global variable part of fdisk_context()
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>
11 years agopartx: support -o +<attr> for adding attribute to output fields
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>