]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agodocs: update AUTHORS file
Karel Zak [Mon, 6 Feb 2012 16:00:08 +0000 (17:00 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Mon, 6 Feb 2012 15:57:05 +0000 (16:57 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add --memcheck to
Karel Zak [Mon, 6 Feb 2012 15:32:29 +0000 (16:32 +0100)] 
tests: add --memcheck to

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: check localtime() result
Karel Zak [Mon, 6 Feb 2012 15:02:28 +0000 (16:02 +0100)] 
agetty: check localtime() result

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: fix leak, improve strtok usage
Karel Zak [Mon, 6 Feb 2012 11:51:55 +0000 (12:51 +0100)] 
login: fix leak, improve strtok usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agovipw: use xalloc.h
Karel Zak [Mon, 6 Feb 2012 10:22:54 +0000 (11:22 +0100)] 
vipw: use xalloc.h

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: use #ifdef fr selinux specific variables
Karel Zak [Fri, 3 Feb 2012 11:35:36 +0000 (12:35 +0100)] 
libmount: use #ifdef fr selinux specific variables

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: remove uneecessary code
Karel Zak [Fri, 3 Feb 2012 11:35:10 +0000 (12:35 +0100)] 
fdisk: remove uneecessary code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: check stat() return code
Karel Zak [Thu, 2 Feb 2012 23:01:32 +0000 (00:01 +0100)] 
lsblk: check stat() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: allocate buffer with shell name
Karel Zak [Thu, 2 Feb 2012 14:43:29 +0000 (15:43 +0100)] 
login: allocate buffer with shell name

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohexdump: make code more robust
Karel Zak [Thu, 2 Feb 2012 14:34:08 +0000 (15:34 +0100)] 
hexdump: make code more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/loopdev: remove dead assigment and null deference
Karel Zak [Thu, 2 Feb 2012 13:48:03 +0000 (14:48 +0100)] 
lib/loopdev: remove dead assigment and null deference

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: remove dead assigment
Karel Zak [Thu, 2 Feb 2012 13:43:07 +0000 (14:43 +0100)] 
sfdisk: remove dead assigment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: don't ignore chmod/own errors
Karel Zak [Thu, 2 Feb 2012 13:39:02 +0000 (14:39 +0100)] 
libmount: don't ignore chmod/own errors

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: remove dead assigment
Karel Zak [Thu, 2 Feb 2012 13:33:18 +0000 (14:33 +0100)] 
blkid: remove dead assigment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/loopdev: fix part scan detection code
Karel Zak [Thu, 2 Feb 2012 13:29:22 +0000 (14:29 +0100)] 
lib/loopdev: fix part scan detection code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: remove dead assigment
Karel Zak [Thu, 2 Feb 2012 13:27:48 +0000 (14:27 +0100)] 
libmount: remove dead assigment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: remove never read value
Karel Zak [Thu, 2 Feb 2012 13:26:04 +0000 (14:26 +0100)] 
hwclock: remove never read value

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: clean usage, remove redundat code
Karel Zak [Thu, 2 Feb 2012 13:23:49 +0000 (14:23 +0100)] 
hwclock: clean usage, remove redundat code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: (and chsh) make pw_shell usage more robust
Karel Zak [Thu, 2 Feb 2012 13:13:45 +0000 (14:13 +0100)] 
login: (and chsh) make pw_shell usage more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: initialize rc variable
Karel Zak [Thu, 2 Feb 2012 11:50:44 +0000 (12:50 +0100)] 
findmnt: initialize rc variable

13 years agoblockdev: make the code more readable for static analysers
Karel Zak [Thu, 2 Feb 2012 11:49:13 +0000 (12:49 +0100)] 
blockdev: make the code more readable for static analysers

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: cleanup fd usage
Karel Zak [Thu, 2 Feb 2012 11:44:27 +0000 (12:44 +0100)] 
sfdisk: cleanup fd usage

13 years agosfdisk: fix typo in cdrom detection
Karel Zak [Thu, 2 Feb 2012 11:34:53 +0000 (12:34 +0100)] 
sfdisk: fix typo in cdrom detection

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: fix fd leak
Karel Zak [Thu, 2 Feb 2012 11:32:45 +0000 (12:32 +0100)] 
lscpu: fix fd leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: fix fd leak
Karel Zak [Thu, 2 Feb 2012 11:28:54 +0000 (12:28 +0100)] 
sfdisk: fix fd leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: make --poll more robust
Karel Zak [Wed, 1 Feb 2012 23:05:24 +0000 (00:05 +0100)] 
findmnt: make --poll more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/sysfs: fix handle leak
Karel Zak [Wed, 1 Feb 2012 22:02:21 +0000 (23:02 +0100)] 
lib/sysfs: fix handle leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agokill: fix fd leak
Karel Zak [Wed, 1 Feb 2012 13:03:20 +0000 (14:03 +0100)] 
kill: fix fd leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: fix cdrom detection
Karel Zak [Wed, 1 Feb 2012 12:42:08 +0000 (13:42 +0100)] 
fdisk: fix cdrom detection

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agonewgrp: fix possible FILE leak on error
Karel Zak [Wed, 1 Feb 2012 12:37:57 +0000 (13:37 +0100)] 
newgrp: fix possible FILE leak on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/loopdev: fix possible dir leak on error
Karel Zak [Wed, 1 Feb 2012 12:06:34 +0000 (13:06 +0100)] 
lib/loopdev: fix possible dir leak on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/sysfs: fix possible fd leak on error
Karel Zak [Wed, 1 Feb 2012 12:03:58 +0000 (13:03 +0100)] 
lib/sysfs: fix possible fd leak on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agovipw: don't modify environment, check strtok() return value
Karel Zak [Wed, 1 Feb 2012 11:41:25 +0000 (12:41 +0100)] 
vipw: don't modify environment, check strtok() return value

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochcpu: check get_max_number_of_cpus() result properly
Karel Zak [Wed, 1 Feb 2012 11:26:20 +0000 (12:26 +0100)] 
chcpu: check get_max_number_of_cpus() result properly

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocfdisk: wctomb() returns -1 on error
Karel Zak [Wed, 1 Feb 2012 11:05:31 +0000 (12:05 +0100)] 
cfdisk: wctomb() returns -1 on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: don't swap unsigned char
Karel Zak [Wed, 1 Feb 2012 10:53:45 +0000 (11:53 +0100)] 
fdisk: don't swap unsigned char

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: fix small leak
Karel Zak [Wed, 1 Feb 2012 08:13:55 +0000 (09:13 +0100)] 
partx: fix small leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofsck.cramfs: mark usage() as noreturn
Karel Zak [Tue, 31 Jan 2012 20:20:55 +0000 (21:20 +0100)] 
fsck.cramfs: mark usage() as noreturn

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochrt: add comment to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 20:14:40 +0000 (21:14 +0100)] 
chrt: add comment to keep static analysers happy

13 years agoblkid: add comment to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 20:10:13 +0000 (21:10 +0100)] 
blkid: add comment to keep static analysers happy

13 years agosfdisk: add comment to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 20:07:11 +0000 (21:07 +0100)] 
sfdisk: add comment to keep static analysers happy

13 years agofdisk: add missing break
Karel Zak [Tue, 31 Jan 2012 20:06:42 +0000 (21:06 +0100)] 
fdisk: add missing break

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomore: add comment
Karel Zak [Tue, 31 Jan 2012 20:02:51 +0000 (21:02 +0100)] 
more: add comment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswapon: add break to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 19:59:54 +0000 (20:59 +0100)] 
swapon: add break to keep static analysers happy

13 years agoumount: add missing break
Karel Zak [Tue, 31 Jan 2012 19:58:30 +0000 (20:58 +0100)] 
umount: add missing break

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix suspicious implicit sign extension [coverity scan]
Karel Zak [Tue, 31 Jan 2012 14:11:38 +0000 (15:11 +0100)] 
libblkid: fix suspicious implicit sign extension [coverity scan]

... thanks to "value preserving rules".

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: more robust idx usage [coverity scan]
Karel Zak [Tue, 31 Jan 2012 14:03:27 +0000 (15:03 +0100)] 
libblkid: more robust idx usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: dereferencing NULL pointer [coverity scan]
Karel Zak [Tue, 31 Jan 2012 14:00:52 +0000 (15:00 +0100)] 
lscpu: dereferencing NULL pointer [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: make fd usage in md code more robust
Karel Zak [Tue, 31 Jan 2012 13:56:34 +0000 (14:56 +0100)] 
libblkid: make fd usage in md code more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: comparing an array to null is not useful [coverity scan]
Karel Zak [Tue, 31 Jan 2012 13:50:22 +0000 (14:50 +0100)] 
login: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: comparing an array to null is not useful [coverity scan]
Karel Zak [Tue, 31 Jan 2012 13:47:53 +0000 (14:47 +0100)] 
libblkid: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: consolidate sysconf() usage
Karel Zak [Tue, 31 Jan 2012 13:31:09 +0000 (14:31 +0100)] 
libmount: consolidate sysconf() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: more robust sysconf() usage [coverity scan]
Karel Zak [Tue, 31 Jan 2012 13:23:26 +0000 (14:23 +0100)] 
login: more robust sysconf() usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: check fd before use [coverity scan]
Karel Zak [Tue, 31 Jan 2012 13:19:27 +0000 (14:19 +0100)] 
blkid: check fd before use [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agonamei: more robust add_it() [coverity scan]
Karel Zak [Tue, 31 Jan 2012 13:04:03 +0000 (14:04 +0100)] 
namei: more robust add_it() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: check for NULL in blkid_flush_cache() [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:39:49 +0000 (13:39 +0100)] 
libblkid: check for NULL in blkid_flush_cache() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix blkid_do_fullprobe() [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:35:35 +0000 (13:35 +0100)] 
libblkid: fix blkid_do_fullprobe() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: check blkid_probe_set_magic() return in ultrix code [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:31:23 +0000 (13:31 +0100)] 
libblkid: check blkid_probe_set_magic() return in ultrix code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: check blkid_probe_set_magic() return in GPT code [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:30:03 +0000 (13:30 +0100)] 
libblkid: check blkid_probe_set_magic() return in GPT code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: check sysfs_init() return value [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:27:07 +0000 (13:27 +0100)] 
partx: check sysfs_init() return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: check return values in safe_probe code [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:25:00 +0000 (13:25 +0100)] 
libblkid: check return values in safe_probe code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomkswap: check blkid_probe_lookup_values() return [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:10:58 +0000 (13:10 +0100)] 
mkswap: check blkid_probe_lookup_values() return [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: check blkid_probe_set_magic() return value [coverity scan]
Karel Zak [Tue, 31 Jan 2012 12:00:42 +0000 (13:00 +0100)] 
libblkid: check blkid_probe_set_magic() return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: check rename() return value [coverity scan]
Karel Zak [Tue, 31 Jan 2012 11:55:36 +0000 (12:55 +0100)] 
libblkid: check rename() return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochfn: fix use-after-free [coverity scan]
Karel Zak [Mon, 30 Jan 2012 23:10:53 +0000 (00:10 +0100)] 
chfn: fix use-after-free [coverity scan]

access FILE pointer after failed fclose() results in undefined behavior

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: make iter reset more robust [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:55:26 +0000 (23:55 +0100)] 
libmount: make iter reset more robust [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoumount: (new) fix resource leak [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:49:00 +0000 (23:49 +0100)] 
umount: (new) fix resource leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: fix resource leak [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:47:27 +0000 (23:47 +0100)] 
findmnt: fix resource leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) fix resource leak [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:44:31 +0000 (23:44 +0100)] 
mount: (new) fix resource leak [coverity scan]

well, this is free-before-exit, but let's use mount(8) as test
application for libmount and keep it without leaks.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix resource leak [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:38:18 +0000 (23:38 +0100)] 
libmount: fix resource leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix resource leak [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:27:23 +0000 (23:27 +0100)] 
libmount: fix resource leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix possible null dereferencing [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:22:53 +0000 (23:22 +0100)] 
libmount: fix possible null dereferencing [coverity scan]

 ... let's keep Coverity analyzer happy.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix negative returns [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:17:28 +0000 (23:17 +0100)] 
libmount: fix negative returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix checked-return [coverity scan]
Karel Zak [Mon, 30 Jan 2012 22:02:43 +0000 (23:02 +0100)] 
libmount: fix checked-return [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix use-after-free [coverity scan]
Karel Zak [Mon, 30 Jan 2012 21:57:42 +0000 (22:57 +0100)] 
libblkid: fix use-after-free [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update TODO
Karel Zak [Mon, 30 Jan 2012 13:55:58 +0000 (14:55 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowhereis: move token assignment into loop syntax
Karel Zak [Mon, 30 Jan 2012 12:19:14 +0000 (13:19 +0100)] 
whereis: move token assignment into loop syntax

Reported-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix limit for OCFS check
Karel Zak [Mon, 30 Jan 2012 12:00:55 +0000 (13:00 +0100)] 
libblkid: fix limit for OCFS check

Rogier Goossens wrote:

 While testing KDE partitionmanager, I discovered that blkid did not
 detect the test OCFS2 filesystem I created. After some investigation,
 it appeared that it will assume the filesystem cannot be OCFS2 if
 smaller than 108M. However, mkfs.ocfs2 from ocfs2-tools (1.6.3) will
 happily create filesystems that are much smaller, only failing below
 approx. 15000 1k blocks, and below approx. 6000 4k blocks.

Reported-by: Rogier Goossens <goossens.rogier@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: use correct translation project url
Sami Kerola [Sat, 28 Jan 2012 10:53:47 +0000 (11:53 +0100)] 
docs: use correct translation project url

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomount: define fallback selinux_warning macro with 2 params
Dave Reisner [Mon, 23 Jan 2012 14:31:24 +0000 (09:31 -0500)] 
mount: define fallback selinux_warning macro with 2 params

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
13 years agodocs: remove URL to u-l webpage
Karel Zak [Mon, 30 Jan 2012 09:56:13 +0000 (10:56 +0100)] 
docs: remove URL to u-l webpage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Fri, 27 Jan 2012 13:30:24 +0000 (14:30 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add valgrind to libmount context utab tests
Karel Zak [Thu, 26 Jan 2012 14:02:42 +0000 (15:02 +0100)] 
tests: add valgrind to libmount context utab tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix context test logic
Karel Zak [Thu, 26 Jan 2012 14:01:01 +0000 (15:01 +0100)] 
libmount: fix context test logic

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add valgrind to libmount context tests
Karel Zak [Thu, 26 Jan 2012 14:00:42 +0000 (15:00 +0100)] 
tests: add valgrind to libmount context tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add valgrind to libmount lock tests
Karel Zak [Thu, 26 Jan 2012 13:51:09 +0000 (14:51 +0100)] 
tests: add valgrind to libmount lock tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix leak in tabdiff test
Karel Zak [Thu, 26 Jan 2012 13:47:48 +0000 (14:47 +0100)] 
libmount: fix leak in tabdiff test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add valgrind to libmount tabdiff tests
Karel Zak [Thu, 26 Jan 2012 13:47:32 +0000 (14:47 +0100)] 
tests: add valgrind to libmount tabdiff tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add valgrind to libmount tags eval. tests
Karel Zak [Thu, 26 Jan 2012 13:45:01 +0000 (14:45 +0100)] 
tests: add valgrind to libmount tags eval. tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix leak in tab parsing error code
Karel Zak [Thu, 26 Jan 2012 13:42:35 +0000 (14:42 +0100)] 
libmount: fix leak in tab parsing error code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add valgrind to libmount tab parse test
Karel Zak [Thu, 26 Jan 2012 13:41:26 +0000 (14:41 +0100)] 
tests: add valgrind to libmount tab parse test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix leak in tab_update.c test
Karel Zak [Thu, 26 Jan 2012 13:28:08 +0000 (14:28 +0100)] 
libmount: fix leak in tab_update.c test

13 years agotests: call valgrind from libmount utils and update tests
Karel Zak [Thu, 26 Jan 2012 13:27:09 +0000 (14:27 +0100)] 
tests: call valgrind from libmount utils and update tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix buffer overflow and leaks in tests
Karel Zak [Thu, 26 Jan 2012 13:17:28 +0000 (14:17 +0100)] 
libmount: fix buffer overflow and leaks in tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: call valgrind from libmount optstr test
Karel Zak [Thu, 26 Jan 2012 12:52:28 +0000 (13:52 +0100)] 
tests: call valgrind from libmount optstr test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add infrastructure for valgrind
Karel Zak [Thu, 26 Jan 2012 12:51:38 +0000 (13:51 +0100)] 
tests: add infrastructure for valgrind

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: don't pass comments=/x-* to mount.<type> helpers
Karel Zak [Wed, 25 Jan 2012 16:14:24 +0000 (17:14 +0100)] 
libmount: don't pass comments=/x-* to mount.<type> helpers

This patch add a new flag MNT_NOHLPS for mount options map, options
with this flag will not be passed to /sbin/mount.<type> helpers.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: move cache to /run on new systems
Karel Zak [Wed, 25 Jan 2012 11:56:39 +0000 (12:56 +0100)] 
blkid: move cache to /run on new systems

 Why?

 * read-only root

 * /etc is pretty bad place for caches

 * all is usually cached by udev in /dev/disk/by-* and libblkid
   is able to use these symlinks

 * boot persistent cache is attractive for very small subset of
   Linux machines (and they already need extra udev tunning otherwise
   udev will probe all block devices during boot)

 * the default is possible to override in /etc/blkid.conf

The systems without /run directory will not be affected by this
change.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: remove -w option from man page and usage() output
Karel Zak [Wed, 25 Jan 2012 11:26:49 +0000 (12:26 +0100)] 
blkid: remove -w option from man page and usage() output

The option does not have any effect, the original functionality was
removed from e2fsprogs in year 2003 by

 commit 50b380b4d4ab668bad45033e3a8aaf93c7f42844
 git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git

So.. don't propagate the option to users in year 2012 :-)

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