]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
14 years agolibblkid: fix EFI GPT uuid byte order
Karel Zak [Tue, 1 Mar 2011 09:01:21 +0000 (10:01 +0100)] 
libblkid: fix EFI GPT uuid byte order

Intel uses little-endians for UUID, the rest of the sane world uses 16
byte big-endian array...

Reported-by: Andrew Lutomirski <luto@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: try to detect if PT is newer than LVM
Karel Zak [Thu, 24 Feb 2011 13:03:44 +0000 (14:03 +0100)] 
libblkid: try to detect if PT is newer than LVM

LVM (pvcreate) wipes the begin of the device. If there is a PT in the
wiped area then LVM signature is obsolete.

 # pvcreate /dev/sdb
 # fdisk /dev/sdb

old version:
 # blkid -p -o udev /dev/sdb
 ID_FS_TYPE=LVM2_member

new version:
 # blkid -p -o udev /dev/sdb
 ID_PART_TABLE_TYPE=dos

Reported-by: Matej Cepl <mcepl@redhat.com>
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=679799
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolsblk: bitwise or TT_FL_ASCII with tt_flags instead of setting
Dave Reisner [Mon, 21 Feb 2011 13:51:24 +0000 (08:51 -0500)] 
lsblk: bitwise or TT_FL_ASCII with tt_flags instead of setting

Signed-off-by: Dave Reisner <d@falconindy.com>
14 years agoscriptreplay: bug in argument check
Sami Kerola [Sun, 20 Feb 2011 12:21:17 +0000 (13:21 +0100)] 
scriptreplay: bug in argument check

Number of arguments cannot be at the same time too many and few.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoscript: fix compiler warnings
Sami Kerola [Sun, 20 Feb 2011 12:21:13 +0000 (13:21 +0100)] 
script: fix compiler warnings

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolib: [strutils.c] more robust strtol checks
Karel Zak [Mon, 21 Feb 2011 14:35:04 +0000 (15:35 +0100)] 
lib: [strutils.c] more robust strtol checks

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: add tests for [u]mount regular file
Karel Zak [Mon, 21 Feb 2011 14:12:30 +0000 (15:12 +0100)] 
tests: add tests for [u]mount regular file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoumount: allow unmounting loopdev specified by associated file
Petr Uzel [Thu, 17 Feb 2011 11:52:43 +0000 (12:52 +0100)] 
umount: allow unmounting loopdev specified by associated file

Make it possible to unmount a filesystem on a loop device if it is
specified by associated backing file. It does not attempt to unmount
anything if there are more than one loop device associated with the
given file.

Umount looks for associated loopdevice(s) only if umount is called
with the regular file as an argument.

Before:
mount -o loop -t ext2 img mnt
umount -v img
> Could not find /home/puzel/upstream/util-linux/img in mtab
> umount: img: not mounted

After:
mount -o loop -t ext2 img mnt
umount -v img
> img is associated with /dev/loop0, trying to unmount it
> /dev/loop0 has been unmounted

[kzak@redhat.com: - fix memory leak in lomount.c]

Addresses: https://bugzilla.novell.com/show_bug.cgi?id=666161
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolsblk: fix readlink() usage
Karel Zak [Fri, 18 Feb 2011 13:36:04 +0000 (14:36 +0100)] 
lsblk: fix readlink() usage

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochsh: fix gcc link() warn_unused_result warning
Karel Zak [Thu, 17 Feb 2011 11:00:36 +0000 (12:00 +0100)] 
chsh: fix gcc link() warn_unused_result warning

setpwnam.c:176:9: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofsck: fix -C parsing
Karel Zak [Thu, 17 Feb 2011 10:56:51 +0000 (11:56 +0100)] 
fsck: fix -C parsing

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochsh: fix small memory leak
Karel Zak [Thu, 17 Feb 2011 10:23:24 +0000 (11:23 +0100)] 
chsh: fix small memory leak

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologin: does not ignore setgid() return code for non-roots
Karel Zak [Thu, 17 Feb 2011 10:16:43 +0000 (11:16 +0100)] 
login: does not ignore setgid() return code for non-roots

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: more robust whole-disk detection
Karel Zak [Thu, 17 Feb 2011 10:02:26 +0000 (11:02 +0100)] 
fdisk: more robust whole-disk detection

In lib/wholedisk.c, i is set to 0. If fd was a -1, then at
line 18 geometry.start is used without it being initialized.

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibuuid: do not use invalid file descriptor
Petr Uzel [Mon, 14 Feb 2011 13:43:25 +0000 (14:43 +0100)] 
libuuid: do not use invalid file descriptor

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agolibuuid: manpage spelling fixes
Petr Uzel [Mon, 14 Feb 2011 13:43:24 +0000 (14:43 +0100)] 
libuuid: manpage spelling fixes

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agolibuuid: fix test in get_clock()
Petr Uzel [Mon, 14 Feb 2011 13:43:23 +0000 (14:43 +0100)] 
libuuid: fix test in get_clock()

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: fix manpage: libuuid(3) does not exist
Petr Uzel [Mon, 14 Feb 2011 13:43:22 +0000 (14:43 +0100)] 
uuidd: fix manpage: libuuid(3) does not exist

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agolib: [strutils] avoid integer overflow on large values
Dave Reisner [Tue, 15 Feb 2011 09:06:08 +0000 (10:06 +0100)] 
lib: [strutils] avoid integer overflow on large values

This is visible on a 2TB disk via lsblk, where a large partition
incorrectly displays as 1.171798692T instead of 1.8T. This is
corrected by using a uint64_t type instead of a simple int --
consistant with the type used in lsblk.c to represent the raw size in
bytes.

[kzak@redhat.com: - add EiB support
                  - add size_to_human_string() to regression tests]

Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add fallbacks for old systems without umount2() syscall
Karel Zak [Fri, 11 Feb 2011 09:45:09 +0000 (10:45 +0100)] 
libmount: add fallbacks for old systems without umount2() syscall

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [at.h]: include c.h for PATH_MAX
Karel Zak [Fri, 11 Feb 2011 09:36:12 +0000 (10:36 +0100)] 
include: [at.h]: include c.h for PATH_MAX

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: replace mkostmps() with more portable mkstemp()
Karel Zak [Fri, 11 Feb 2011 09:18:00 +0000 (10:18 +0100)] 
libmount: replace mkostmps() with more portable mkstemp()

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: don't build lsblk on Linux without openat()
Karel Zak [Fri, 11 Feb 2011 08:42:49 +0000 (09:42 +0100)] 
build-sys: don't build lsblk on Linux without openat()

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopartx, lsblk: fix gettext calls
Karel Zak [Fri, 11 Feb 2011 08:06:27 +0000 (09:06 +0100)] 
partx, lsblk: fix gettext calls

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.19) v2.19
Karel Zak [Thu, 10 Feb 2011 08:37:47 +0000 (09:37 +0100)] 
build-sys: release++ (v2.19)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update v2.19 ReleaseNotes
Karel Zak [Thu, 10 Feb 2011 08:27:06 +0000 (09:27 +0100)] 
docs: update v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update AUTHORS file
Karel Zak [Thu, 10 Feb 2011 08:20:02 +0000 (09:20 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: merge changes
Karel Zak [Thu, 10 Feb 2011 08:18:11 +0000 (09:18 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)] 
po: update pl.po (from translationproject.org)

14 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)] 
po: update nl.po (from translationproject.org)

14 years agopo: update fr.po (from translationproject.org)
David Prévot [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)] 
po: update fr.po (from translationproject.org)

14 years agopo: update da.po (from translationproject.org)
Joe Hansen [Thu, 10 Feb 2011 08:14:50 +0000 (09:14 +0100)] 
po: update da.po (from translationproject.org)

14 years agopo: update cs.po (from translationproject.org)
Petr Písař [Thu, 10 Feb 2011 08:14:49 +0000 (09:14 +0100)] 
po: update cs.po (from translationproject.org)

14 years agoinclude: [c.h]: add unused attribute to ignore_result()
Karel Zak [Wed, 9 Feb 2011 19:37:08 +0000 (20:37 +0100)] 
include: [c.h]: add unused attribute to ignore_result()

unfortunately, gcc 4.6

void fn (void) {
int foo;
foo = bar ();
}

evaluates that foo is never used. The __attribute__((unused)) is
necessary...

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: fix libmount test
Karel Zak [Wed, 9 Feb 2011 14:02:41 +0000 (15:02 +0100)] 
tests: fix libmount test

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibuuid: do not check for EAGAIN after flock()
Petr Uzel [Wed, 9 Feb 2011 12:14:04 +0000 (13:14 +0100)] 
libuuid: do not check for EAGAIN after flock()

As per flock() manpage, flock() does not set errno=EAGAIN.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agolibmount: do not check for EAGAIN after flock()
Petr Uzel [Wed, 9 Feb 2011 12:13:49 +0000 (13:13 +0100)] 
libmount: do not check for EAGAIN after flock()

As per flock() manpage, flock() does not set errno=EAGAIN.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agomount: add rootcontext= for tmpfs on SELinux boxes
Karel Zak [Wed, 9 Feb 2011 13:15:02 +0000 (14:15 +0100)] 
mount: add rootcontext= for tmpfs on SELinux boxes

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=476964
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=676100
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [c.h]: fix __alloc_size__ test
Karel Zak [Tue, 8 Feb 2011 15:35:41 +0000 (16:35 +0100)] 
include: [c.h]: fix __alloc_size__ test

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: more robust flock() usage
Karel Zak [Tue, 8 Feb 2011 15:32:53 +0000 (16:32 +0100)] 
libmount: more robust flock() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibuuid: fix locking of clock state counter file
Petr Uzel [Mon, 7 Feb 2011 13:18:28 +0000 (14:18 +0100)] 
libuuid: fix locking of clock state counter file

fcntl(2) does not work for synchronization of threads belonging
to the same process. Use flock(2) instead.

http://marc.info/?l=util-linux-ng&m=129708412829971&w=2

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agoschedutils: remove unneeded header files
Davidlohr Bueso [Fri, 4 Feb 2011 18:54:43 +0000 (15:54 -0300)] 
schedutils: remove unneeded header files

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agolscpu: add description of --sysroot option to man page, plus grammar touches
Benno Schulenberg [Wed, 2 Feb 2011 11:06:24 +0000 (12:06 +0100)] 
lscpu: add description of --sysroot option to man page, plus grammar touches

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agolsblk: small grammar touches to the man page
Benno Schulenberg [Tue, 1 Feb 2011 20:55:54 +0000 (21:55 +0100)] 
lsblk: small grammar touches to the man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agopartx: normalize the punctuation of man page, and improve grammar here and there
Benno Schulenberg [Tue, 1 Feb 2011 11:11:47 +0000 (12:11 +0100)] 
partx: normalize the punctuation of man page, and improve grammar here and there

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoblkid: dynamically allocate devicename array
Eric Sandeen [Tue, 8 Feb 2011 05:44:26 +0000 (23:44 -0600)] 
blkid: dynamically allocate devicename array

If more than 128 devices are specified on the blkid cmdline,
the devices[] array will overflow.

We can dynamically allocate the devices[] array based on number
of arguments to avoid this problem.

[kzak@redhat.com: - add "if (optind < argc)" check]

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agowipefs: use write_all from include/writeall.h
Petr Uzel [Fri, 4 Feb 2011 08:05:58 +0000 (09:05 +0100)] 
wipefs: use write_all from include/writeall.h

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agoswapon: use EXIT_SUCCESS constants
Davidlohr Bueso [Thu, 3 Feb 2011 20:43:29 +0000 (17:43 -0300)] 
swapon: use EXIT_SUCCESS constants

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agodmesg: use strtol_or_err instead of atoi
Davidlohr Bueso [Thu, 3 Feb 2011 20:41:56 +0000 (17:41 -0300)] 
dmesg: use strtol_or_err instead of atoi

We shouldn't be accepting things like 'dmesg -n 2crapinput'
This patch also changes the exit's value to use EXIT_* constants.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agolscpu: cleanup usage()
Karel Zak [Tue, 8 Feb 2011 14:36:28 +0000 (15:36 +0100)] 
lscpu: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agouuidd: correctly report number of generated subsequent UUIDs
Petr Uzel [Thu, 3 Feb 2011 14:04:59 +0000 (15:04 +0100)] 
uuidd: correctly report number of generated subsequent UUIDs

Before this change, "uuidd -t -n 1" reported
"6fd0672e-2f9b-11e0-b9c8-000feae00cb0 and subsequent 1 UUIDs".
That is two subsequent UUIDs, which is not correct.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: fix -n usage
Petr Uzel [Thu, 3 Feb 2011 14:04:58 +0000 (15:04 +0100)] 
uuidd: fix -n usage

It does not make sense to request zero UUIDs - report error.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: increase connection backlog size to SOMAXCONN
Petr Uzel [Thu, 3 Feb 2011 14:04:57 +0000 (15:04 +0100)] 
uuidd: increase connection backlog size to SOMAXCONN

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: use write_all from include/writeall.h
Petr Uzel [Thu, 3 Feb 2011 14:04:55 +0000 (15:04 +0100)] 
uuidd: use write_all from include/writeall.h

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: use die() where possible
Petr Uzel [Thu, 3 Feb 2011 14:04:54 +0000 (15:04 +0100)] 
uuidd: use die() where possible

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: use daemon(3) library function
Petr Uzel [Thu, 3 Feb 2011 14:04:53 +0000 (15:04 +0100)] 
uuidd: use daemon(3) library function

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: use UUID_STR_LEN and UUID_LEN
Petr Uzel [Wed, 2 Feb 2011 13:04:35 +0000 (14:04 +0100)] 
uuidd: use UUID_STR_LEN and UUID_LEN

Use named constants for lentgh of UUID's binary and textual
representation, instead of magic numbers.

[kzak@redhat.com: - use sizeof(uuid_t) rather than hardcoded size]

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agouuidd: use UUIDD_OP_BULK_*_UUID named constants
Petr Uzel [Tue, 1 Feb 2011 15:08:27 +0000 (16:08 +0100)] 
uuidd: use UUIDD_OP_BULK_*_UUID named constants

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agouuidd: fix uuidd -r -n 2
Petr Uzel [Tue, 1 Feb 2011 14:46:53 +0000 (15:46 +0100)] 
uuidd: fix uuidd -r -n 2

uuidd -r -n 2 failed with "Unexpected reply length from server 36".
Fixed by this patch.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agoinclude: [xalloc.h] include string.h
Marek Polacek [Fri, 4 Feb 2011 14:08:48 +0000 (15:08 +0100)] 
include: [xalloc.h] include string.h

xalloc.h needs string.h for declaration of strdup().  Otherwise we
can get implicit declaration warning.  This patch prevents it.

Signed-off-by: Marek Polacek <mpolacek@redhat.com>
14 years agoinclude: [c.h] add fallback for alloc_size attributes
Karel Zak [Mon, 7 Feb 2011 16:29:47 +0000 (17:29 +0100)] 
include: [c.h] add fallback for alloc_size attributes

Reported-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofsck: include c.h, fallback for PATH_MAX
Karel Zak [Mon, 7 Feb 2011 15:20:04 +0000 (16:20 +0100)] 
fsck: include c.h, fallback for PATH_MAX

Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [c.h] move ignore_result() to gcc-only block
Karel Zak [Mon, 7 Feb 2011 14:52:21 +0000 (15:52 +0100)] 
include: [c.h] move ignore_result() to gcc-only block

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add and copy FS internal flags
Karel Zak [Mon, 7 Feb 2011 14:17:07 +0000 (15:17 +0100)] 
libmount: add and copy FS internal flags

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: don't prepare update if syscall failed
Karel Zak [Mon, 7 Feb 2011 14:15:30 +0000 (15:15 +0100)] 
libmount: don't prepare update if syscall failed

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update ReleaseNotes
Karel Zak [Thu, 3 Feb 2011 12:14:27 +0000 (13:14 +0100)] 
docs: update ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: add new return code 8 for ambivalent low-level probing result
Karel Zak [Thu, 3 Feb 2011 11:59:58 +0000 (12:59 +0100)] 
blkid: add new return code 8 for ambivalent low-level probing result

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: add note about PART_ENTRY_ tags to blkid.8
Karel Zak [Thu, 3 Feb 2011 11:34:34 +0000 (12:34 +0100)] 
blkid: add note about PART_ENTRY_ tags to blkid.8

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: don't return PART_ENTRY_* if partition is empty
Karel Zak [Thu, 3 Feb 2011 11:12:37 +0000 (12:12 +0100)] 
blkid: don't return PART_ENTRY_* if partition is empty

The PART_ENTRY_* has nothing to do with the _contents_ of the block
device. So if the device is empty these values should not be printed
and blkid(8) has to return 2.

The PART_ENTRY_* for empty devices should be printed for "-o udev"
output only.

Reported-by: Thomas Bächler <thomas@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: don't print devname if nothing detected
Karel Zak [Thu, 3 Feb 2011 11:01:45 +0000 (12:01 +0100)] 
blkid: don't print devname if nothing detected

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: cleanup helper initialization API
Karel Zak [Wed, 2 Feb 2011 21:32:52 +0000 (22:32 +0100)] 
libmount: cleanup helper initialization API

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add low-level API for umount
Karel Zak [Wed, 2 Feb 2011 20:30:17 +0000 (21:30 +0100)] 
libmount: add low-level API for umount

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: cleanup high-level mount API
Karel Zak [Wed, 2 Feb 2011 20:19:14 +0000 (21:19 +0100)] 
libmount: cleanup high-level mount API

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: copy mount attrs from utab to context
Karel Zak [Wed, 2 Feb 2011 13:10:42 +0000 (14:10 +0100)] 
libmount: copy mount attrs from utab to context

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: check for swap or DM cow on small devices
Karel Zak [Tue, 1 Feb 2011 08:38:33 +0000 (09:38 +0100)] 
libblkid: check for swap or DM cow on small devices

The 1MiB limit for swap and COW is useless for Fedora LiveDVD where is
938KiB COW device.

Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: conditionalise parts from blkid/topology for Linux
Fabian Groffen [Tue, 25 Jan 2011 21:48:15 +0000 (22:48 +0100)] 
libblkid: conditionalise parts from blkid/topology for Linux

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: shell syntax fix in autogen.sh
Sami Kerola [Wed, 26 Jan 2011 19:01:33 +0000 (20:01 +0100)] 
build-sys: shell syntax fix in autogen.sh

Use of == as synonym of single = sign backfires on systems where
/bin/sh is dash, like with Ubuntu.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomount: fix parsing offset= followed by more options
Petr Uzel [Wed, 26 Jan 2011 11:17:00 +0000 (12:17 +0100)] 
mount: fix parsing offset= followed by more options

mount does not parse parse offset= option if it is followed by other
options.  In umount, the parsing is done with the get_value() function.
This patch moves get_value to fstab.c (with new name get_option_value())
and fixes mount to use the function.

[kzak@redhat.com: - rename to get_option_value()
  - use fstab.c rather than sundries.c]

Novell bugzilla: #666150

Reported-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: provide missing strnlen from strutils
Fabian Groffen [Tue, 25 Jan 2011 21:45:51 +0000 (22:45 +0100)] 
build-sys: provide missing strnlen from strutils

Solaris lacks strnlen, provide it from strutils.c.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
14 years agoswapon: make needlessly global variables static
Tobias Klauser [Fri, 21 Jan 2011 15:44:18 +0000 (16:44 +0100)] 
swapon: make needlessly global variables static

Also constify the option array.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
14 years agoprovide a workaround if program_invocation_short_name is missing
Fabian Groffen [Tue, 25 Jan 2011 20:40:46 +0000 (21:40 +0100)] 
provide a workaround if program_invocation_short_name is missing

Try some replacements, such as getexecname() on Solaris and __progname
on BSDs and Darwin.  When not found, base program_invocation_short_name
on the source filename it is used in, as not to require argv[0] to be
passed along.  This latter approach is not dynamic, but doesn't require
code changes for all places where program_invocation_short_name is used
now.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: enable lsblk and libmount for Linux only
Karel Zak [Mon, 31 Jan 2011 13:18:46 +0000 (14:18 +0100)] 
build-sys: enable lsblk and libmount for Linux only

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: fix atime description in mount.8 man page
Karel Zak [Thu, 27 Jan 2011 13:04:18 +0000 (14:04 +0100)] 
mount: fix atime description in mount.8 man page

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=665376
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.19-rc3) v2.19-rc3
Karel Zak [Tue, 25 Jan 2011 16:21:53 +0000 (17:21 +0100)] 
build-sys: release++ (v2.19-rc3)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update v2.19 ReleaseNotes
Karel Zak [Tue, 25 Jan 2011 16:13:16 +0000 (17:13 +0100)] 
docs: update v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: skip non-compiled libmount tests
Karel Zak [Tue, 25 Jan 2011 15:36:28 +0000 (16:36 +0100)] 
tests: skip non-compiled libmount tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: don't compile tests by default
Karel Zak [Tue, 25 Jan 2011 15:27:16 +0000 (16:27 +0100)] 
libmount: don't compile tests by default

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: fix debug message
Karel Zak [Tue, 25 Jan 2011 14:51:08 +0000 (15:51 +0100)] 
libmount: fix debug message

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.19-rc2) v2.19-rc2
Karel Zak [Tue, 25 Jan 2011 12:10:23 +0000 (13:10 +0100)] 
build-sys: release++ (v2.19-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update v2.19 ReleaseNotes
Karel Zak [Tue, 25 Jan 2011 11:59:47 +0000 (12:59 +0100)] 
docs: update v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update AUTHORS file
Karel Zak [Tue, 25 Jan 2011 11:46:05 +0000 (12:46 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: merge changes
Karel Zak [Tue, 25 Jan 2011 11:44:43 +0000 (12:44 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: update lscpu tests on x86_64
Karel Zak [Tue, 25 Jan 2011 10:36:25 +0000 (11:36 +0100)] 
tests: update lscpu tests on x86_64

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: compile tests
Karel Zak [Tue, 25 Jan 2011 10:19:00 +0000 (11:19 +0100)] 
libmount: compile tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocolumn: data type mismatch compiler warning fixes
Sami Kerola [Sun, 23 Jan 2011 14:40:19 +0000 (15:40 +0100)] 
column: data type mismatch compiler warning fixes

Following warnings will longer appear when one will compile with
gcc flags -Wall -Wextra -pedantic

column.c:364:2: warning: comparison of unsigned expression < 0 is always false
column.c:369:2: warning: comparison of unsigned expression < 0 is always false

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocfdisk: data type mismatch, and other, compiler warning fixes
Sami Kerola [Sun, 23 Jan 2011 14:40:18 +0000 (15:40 +0100)] 
cfdisk: data type mismatch, and other, compiler warning fixes

Following warnings will longer appear when one will compile with
gcc flags -Wall -Wextra -pedantic

cfdisk.c:475:3: warning: comparison of unsigned expression < 0 is always false
cfdisk.c:487:16: warning: comparison between signed and unsigned integer expressions
cfdisk.c:492:14: warning: comparison between signed and unsigned integer expressions
cfdisk.c:565:19: warning: comparison between signed and unsigned integer expressions
cfdisk.c:569:19: warning: comparison between signed and unsigned integer expressions
cfdisk.c:1070:14: warning: comparison between signed and unsigned integer expressions
cfdisk.c:1568:5: warning: missing initializer
cfdisk.c:1568:5: warning: (near initialization for 'tmp_ext.volume_label')

mbsalign.c:131:2: warning: comparison of unsigned expression >= 0 is always true

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolibmount: fix user= usage
Karel Zak [Tue, 25 Jan 2011 00:11:37 +0000 (01:11 +0100)] 
libmount: fix user= usage

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: improve status check, minor cleanups
Karel Zak [Mon, 24 Jan 2011 23:26:47 +0000 (00:26 +0100)] 
libmount: improve status check, minor cleanups

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [tt] enlarge output buffer
Karel Zak [Mon, 24 Jan 2011 23:24:17 +0000 (00:24 +0100)] 
include: [tt] enlarge output buffer

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: rename mount.sym -> libmount.sym
Karel Zak [Mon, 24 Jan 2011 13:18:31 +0000 (14:18 +0100)] 
libmount: rename mount.sym -> libmount.sym

Signed-off-by: Karel Zak <kzak@redhat.com>