]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
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>
13 years agomount: (new) add more info about --stab to mount.8
Karel Zak [Tue, 24 Jan 2012 10:40:15 +0000 (11:40 +0100)] 
mount: (new) add more info about --stab to mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: remove fstab.d support
Karel Zak [Tue, 24 Jan 2012 10:16:53 +0000 (11:16 +0100)] 
libmount: remove fstab.d support

If you really need to store your configuration to a alternative files
then you have to explicitly specify the files or directories on
mount(8) command line by --fstab option.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoRevert "mount: enable fstab.d"
Karel Zak [Tue, 24 Jan 2012 10:04:18 +0000 (11:04 +0100)] 
Revert "mount: enable fstab.d"

 See discussion at https://lkml.org/lkml/2012/1/20/104

This reverts commit d8ebc83ff2e9f879ac60a663c1685011a048f603.

13 years agomount: (new) add --fstab to the man page
Karel Zak [Mon, 23 Jan 2012 19:52:19 +0000 (20:52 +0100)] 
mount: (new) add --fstab to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) add --fstab <path> option
Karel Zak [Mon, 23 Jan 2012 19:31:23 +0000 (20:31 +0100)] 
mount: (new) add --fstab <path> option

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: support multiple --tab-file options
Karel Zak [Mon, 23 Jan 2012 19:22:11 +0000 (20:22 +0100)] 
findmnt: support multiple --tab-file options

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: support dirs for mnt_table_parse_fstab(), add mnt_table_parse_dir()
Karel Zak [Mon, 23 Jan 2012 19:20:36 +0000 (20:20 +0100)] 
libmount: support dirs for mnt_table_parse_fstab(), add mnt_table_parse_dir()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix a potential memory leak at mnt_table_parse_dir
Masatake YAMATO [Fri, 20 Jan 2012 04:00:34 +0000 (13:00 +0900)] 
libmount: fix a potential memory leak at mnt_table_parse_dir

mnt_table_parse_dir in libmount/src/tab_parse.c calls
scandir, and then opendir. When the latter one, opendir is failed,
buffers allocated in scandir are not released.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
13 years agolibmount: Use filter arg of scandir* to pickup /etc/fstab.d/*.fstab files
Masatake YAMATO [Thu, 19 Jan 2012 04:28:41 +0000 (13:28 +0900)] 
libmount: Use filter arg of scandir* to pickup /etc/fstab.d/*.fstab files

This patch is based on my last patch:

     [PATCH 1/2] scandirat based mnt_table_parse_dir implementation

scandir* used in `mnt_table_parse_dir in libmount/src/tab_parse.c
can take filter function as an argument.

`mnt_table_parse_dir' picks up fstab files from namelist returned from
scandir* for itself. However, some parts of picking-up job can be done
in the filter function.

This patch introduces a new function `mnt_table_parse_dir_filter' to
share the code for picking-up job between two implementations of
`mnt_table_parse_dir_filter', scandir based and scandirat based.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
13 years agolibmount: scandirat based mnt_table_parse_dir implementation
Masatake YAMATO [Thu, 19 Jan 2012 04:16:20 +0000 (13:16 +0900)] 
libmount: scandirat based mnt_table_parse_dir implementation

In comment of `mnt_table_parse_dir' of libmount/src/tab_parse.c:

/* TODO: it would be nice to have a scandir() implementation that
 *       is able to use already opened directory */

Nowadays glibc provides `scandirat'. This patch implements `scandirat'
based `mnt_table_parse_dir'.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
13 years agomount: add info about libmount features to --version output
Karel Zak [Mon, 23 Jan 2012 11:28:05 +0000 (12:28 +0100)] 
mount: add info about libmount features to --version output

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: export info about library features
Karel Zak [Mon, 23 Jan 2012 11:27:01 +0000 (12:27 +0100)] 
libmount: export info about library features

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoumount: (new) use the same exit codes as mount(8)
Karel Zak [Mon, 23 Jan 2012 10:15:41 +0000 (11:15 +0100)] 
umount: (new) use the same exit codes as mount(8)

Note that old umount(8) uses 0 and 1 exit codes, and some
exceptions like 4 or 32.

The new umount(8) cleanups this mess and uses the same exit codes as
mount(8) (see mount(8) man page).

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) share exit codes by include/exitcodes.h
Karel Zak [Mon, 23 Jan 2012 09:55:35 +0000 (10:55 +0100)] 
mount: (new) share exit codes by include/exitcodes.h

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) add source/target to error messages
Karel Zak [Fri, 20 Jan 2012 13:17:08 +0000 (14:17 +0100)] 
mount: (new) add source/target to error messages

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) improve mount -a exist codes and erroer messages
Karel Zak [Fri, 20 Jan 2012 12:47:08 +0000 (13:47 +0100)] 
mount: (new) improve  mount -a exist codes and erroer messages

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) add selinux warning
Karel Zak [Fri, 20 Jan 2012 12:14:26 +0000 (13:14 +0100)] 
mount: (new) add selinux warning

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: add note about LIBMOUNT_* env.variables
Karel Zak [Fri, 20 Jan 2012 11:47:15 +0000 (12:47 +0100)] 
findmnt: add note about LIBMOUNT_* env.variables

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: revert --fstab behavior, add --tab-file option
Karel Zak [Fri, 20 Jan 2012 11:15:37 +0000 (12:15 +0100)] 
findmnt: revert --fstab behavior, add --tab-file option

The optional argument for -s, --fstab options (--fstab=file) is not
backwardly compatible, because command line with short options (e.g.
findmnt -snr) will be interpreted incorrectly.

This patch removes support for the optional --fstab argument and
introduces a new option --tab-file, for example:

findmnt --fstab --tab-file=/etc/fstab.foo

Reported-by: Juergen Daubert <jue@jue.li>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoflock: fix sizeof usage [clang -Wsizeof-pointer-memaccess]
Karel Zak [Thu, 19 Jan 2012 18:30:31 +0000 (19:30 +0100)] 
flock: fix sizeof usage [clang -Wsizeof-pointer-memaccess]

flock.c:90:23: warning: argument to 'sizeof' in 'memset' call is the
same expression as the destination; did you mean to dereference it?
      [-Wsizeof-pointer-memaccess]
        memset(sa, 0, sizeof sa);
               ~~            ^~

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: improve ko-release-* scripts
Karel Zak [Thu, 19 Jan 2012 12:15:03 +0000 (13:15 +0100)] 
build-sys: improve ko-release-* scripts

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add ko-release-push script
Karel Zak [Thu, 19 Jan 2012 09:51:48 +0000 (10:51 +0100)] 
build-sys: add ko-release-push script

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add ko-release-gen script
Karel Zak [Thu, 19 Jan 2012 09:33:42 +0000 (10:33 +0100)] 
build-sys: add ko-release-gen script

The script creates directory kernel.org/v<version>/, copy .xz tarball,
changelog, release notes and docs to the directory and sign all files by
gpg.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: improve changelog target
Karel Zak [Thu, 19 Jan 2012 09:32:32 +0000 (10:32 +0100)] 
build-sys: improve changelog target

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add changelog target v2.21-rc1
Karel Zak [Wed, 18 Jan 2012 20:29:52 +0000 (21:29 +0100)] 
build-sys: add changelog target

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: enable .xz, disable .gz
Karel Zak [Wed, 18 Jan 2012 19:10:44 +0000 (20:10 +0100)] 
build-sys: enable .xz, disable .gz

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ (v2.21-rc1)
Karel Zak [Wed, 18 Jan 2012 13:22:17 +0000 (14:22 +0100)] 
build-sys: release++ (v2.21-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: add v2.21 ReleaseNotes
Karel Zak [Wed, 18 Jan 2012 13:20:09 +0000 (14:20 +0100)] 
docs: add v2.21 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Wed, 18 Jan 2012 10:39:05 +0000 (11:39 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Wed, 18 Jan 2012 10:31:55 +0000 (11:31 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Wed, 18 Jan 2012 10:26:08 +0000 (11:26 +0100)] 
po: update ja.po (from translationproject.org)

13 years agopo: update fr.po (from translationproject.org)
David Prévot [Wed, 18 Jan 2012 10:25:50 +0000 (11:25 +0100)] 
po: update fr.po (from translationproject.org)

13 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Wed, 18 Jan 2012 10:25:50 +0000 (11:25 +0100)] 
po: update cs.po (from translationproject.org)

13 years agobuild-sys: add sleepexit from login.c to smatch non-return functions
Karel Zak [Tue, 17 Jan 2012 16:32:32 +0000 (17:32 +0100)] 
build-sys: add sleepexit from login.c to smatch non-return functions

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: remove non-ANSI function declaration [smatch scan]
Karel Zak [Tue, 17 Jan 2012 16:29:55 +0000 (17:29 +0100)] 
hwclock: remove non-ANSI function declaration [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofsck: make fs->type usage more robust [smatch scan]
Karel Zak [Tue, 17 Jan 2012 16:28:46 +0000 (17:28 +0100)] 
fsck: make fs->type usage more robust [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblockdev: remove non-ANSI function declaration [smatch scan]
Karel Zak [Tue, 17 Jan 2012 16:23:01 +0000 (17:23 +0100)] 
blockdev: remove non-ANSI function declaration [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix bugs detected by [smatch scan]
Karel Zak [Tue, 17 Jan 2012 16:16:57 +0000 (17:16 +0100)] 
libmount: fix bugs detected by [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: use $(MAKE) for checksmatch
Karel Zak [Tue, 17 Jan 2012 16:13:16 +0000 (17:13 +0100)] 
build-sys: use $(MAKE) for checksmatch

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolosetup: make xgetpass more robust
Karel Zak [Tue, 17 Jan 2012 16:02:34 +0000 (17:02 +0100)] 
losetup: make xgetpass more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: fix non-ANSI function declaration [smatch scan]
Karel Zak [Tue, 17 Jan 2012 15:50:17 +0000 (16:50 +0100)] 
dmesg: fix non-ANSI function declaration [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoline: fix compiler warnings [-Wunused-parameter]
Karel Zak [Tue, 17 Jan 2012 15:45:58 +0000 (16:45 +0100)] 
line: fix compiler warnings [-Wunused-parameter]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: fix __attribute__ keyword
Karel Zak [Tue, 17 Jan 2012 15:43:45 +0000 (16:43 +0100)] 
mount: fix __attribute__ keyword

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: fix compiler warnings [-Wunused-parameter -Wunused-variable]
Karel Zak [Tue, 17 Jan 2012 15:40:37 +0000 (16:40 +0100)] 
mount: fix compiler warnings [-Wunused-parameter -Wunused-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolosetup: fix compiler warnings [-Wpointer-sign -Wformat]
Karel Zak [Tue, 17 Jan 2012 15:36:55 +0000 (16:36 +0100)] 
losetup: fix compiler warnings [-Wpointer-sign -Wformat]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix compiler warnings [-Wuninitialized -Wformat]
Karel Zak [Tue, 17 Jan 2012 15:33:19 +0000 (16:33 +0100)] 
libmount: fix compiler warnings [-Wuninitialized -Wformat]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix compiler warnings [-Wsign-compare]
Karel Zak [Tue, 17 Jan 2012 15:31:45 +0000 (16:31 +0100)] 
libmount: fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: fix poor coding style
Karel Zak [Tue, 17 Jan 2012 15:27:06 +0000 (16:27 +0100)] 
sfdisk: fix poor coding style

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: fix poor coding style
Karel Zak [Tue, 17 Jan 2012 15:26:08 +0000 (16:26 +0100)] 
fdisk: fix poor coding style

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: remove duplicate includes
Karel Zak [Tue, 17 Jan 2012 15:22:11 +0000 (16:22 +0100)] 
mount: remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib,loopdev: remove duplicate includes
Karel Zak [Tue, 17 Jan 2012 15:21:56 +0000 (16:21 +0100)] 
lib,loopdev: remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: remove duplicate includes
Karel Zak [Tue, 17 Jan 2012 15:21:33 +0000 (16:21 +0100)] 
sfdisk: remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: ignore "defaults" mount option
Karel Zak [Tue, 17 Jan 2012 15:12:04 +0000 (16:12 +0100)] 
libmount: ignore "defaults" mount option

 ... thanks to regression test!

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: add note about alignment to the man page
Karel Zak [Tue, 17 Jan 2012 14:48:20 +0000 (15:48 +0100)] 
sfdisk: add note about alignment to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocfdisk: add note about alignment to the man page
Karel Zak [Tue, 17 Jan 2012 14:48:14 +0000 (15:48 +0100)] 
cfdisk: add note about alignment to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotest: refresh build-sys tests
Karel Zak [Tue, 17 Jan 2012 14:35:10 +0000 (15:35 +0100)] 
test: refresh build-sys tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: avoid canonicalizing pseudofs paths
Dave Reisner [Tue, 17 Jan 2012 01:17:55 +0000 (20:17 -0500)] 
mount: avoid canonicalizing pseudofs paths

This fixes a display bug in the new mount wherein a psuedofs existing in
$PWD by name will be resolved and shown as a real mount point.

  $ cd /tmp; mkdir nfsd; mount | grep nfsd
  /tmp/nfsd on /proc/fs/nfsd type nfsd (rw,relatime)

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
13 years agofdisk: fix last sector dialog bug after an incorrect input with suffix
Francesco Cosoleto [Mon, 16 Jan 2012 05:36:13 +0000 (06:36 +0100)] 
fdisk: fix last sector dialog bug after an incorrect input with suffix

If user input in a last sector dialog was out of range and with suffix, and if
this was followed by accepting the default value, then the used last sector was
erroneously default - 1.

Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agofdisk: rename read_int_sx() and some related variables
Francesco Cosoleto [Mon, 16 Jan 2012 05:36:12 +0000 (06:36 +0100)] 
fdisk: rename read_int_sx() and some related variables

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agolibmount: add MNT_OMODE_NOTAB
Karel Zak [Mon, 16 Jan 2012 13:35:10 +0000 (14:35 +0100)] 
libmount: add MNT_OMODE_NOTAB

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: add UUID to --fs output
Karel Zak [Mon, 16 Jan 2012 12:22:28 +0000 (13:22 +0100)] 
lsblk: add UUID to --fs output

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