]> err.no Git - util-linux/log
util-linux
13 years agofindmnt: use new libmount functions
Karel Zak [Wed, 15 Dec 2010 14:06:25 +0000 (15:06 +0100)]
findmnt: use new libmount functions

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: use separate buffer for userspace options, add mount attributes
Karel Zak [Tue, 14 Dec 2010 22:50:55 +0000 (23:50 +0100)]
libmount: use separate buffer for userspace options, add mount attributes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: read mtab by libmount
Karel Zak [Mon, 6 Dec 2010 23:16:47 +0000 (00:16 +0100)]
mount: read mtab by libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add --enable-libmount-mount
Karel Zak [Mon, 6 Dec 2010 23:16:07 +0000 (00:16 +0100)]
build-sys: add --enable-libmount-mount

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mntent.h compatible stuff
Karel Zak [Mon, 6 Dec 2010 23:09:40 +0000 (00:09 +0100)]
libmount: add mntent.h compatible stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup mangle() usage
Karel Zak [Mon, 6 Dec 2010 23:08:11 +0000 (00:08 +0100)]
libmount: cleanup mangle() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: minor fixes in cache.c
Karel Zak [Mon, 6 Dec 2010 10:47:20 +0000 (11:47 +0100)]
libmount: minor fixes in cache.c

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: remove utab from API, update tests
Karel Zak [Fri, 3 Dec 2010 20:13:52 +0000 (21:13 +0100)]
libmount: remove utab from API, update tests

The utab file is private libmount stuff. Anything about utab should
not be exported by library API.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix to work with btrfs subvolume user mounts
Karel Zak [Fri, 26 Nov 2010 13:33:29 +0000 (14:33 +0100)]
libmount: fix to work with btrfs subvolume user mounts

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: use better format for utab, improve bind mounts
Karel Zak [Thu, 25 Nov 2010 22:22:53 +0000 (23:22 +0100)]
libmount: use better format for utab, improve bind mounts

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix utab file and dir modes, add new debug messages
Karel Zak [Tue, 23 Nov 2010 19:39:55 +0000 (20:39 +0100)]
libmount: fix utab file and dir modes, add new debug messages

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: improve libmount context mount and umount test
Karel Zak [Tue, 23 Nov 2010 12:06:46 +0000 (13:06 +0100)]
tests: improve libmount context mount and umount test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add new debug messages, fix umount return code
Karel Zak [Tue, 23 Nov 2010 11:21:12 +0000 (12:21 +0100)]
libmount: add new debug messages, fix umount return code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: fix exit code
Karel Zak [Mon, 22 Nov 2010 23:26:49 +0000 (00:26 +0100)]
findmnt: fix exit code

... returns 1 if nothing printed.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: use new tab parsing API
Karel Zak [Mon, 22 Nov 2010 22:21:53 +0000 (23:21 +0100)]
findmnt: use new tab parsing API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix context mount test
Karel Zak [Mon, 22 Nov 2010 22:15:54 +0000 (23:15 +0100)]
libmount: fix context mount test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add basic libmount tests for mounting
Karel Zak [Mon, 22 Nov 2010 22:15:00 +0000 (23:15 +0100)]
tests: add basic libmount tests for mounting

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix mnt_optstr_remove_option_at()
Karel Zak [Fri, 19 Nov 2010 12:15:19 +0000 (13:15 +0100)]
libmount: fix mnt_optstr_remove_option_at()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: support /{proc,etc}/filesystems
Karel Zak [Wed, 10 Nov 2010 00:25:07 +0000 (01:25 +0100)]
libmount: support /{proc,etc}/filesystems

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add utab update tests
Karel Zak [Mon, 8 Nov 2010 11:22:01 +0000 (12:22 +0100)]
tests: add utab update tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add debug messages and fix typos in tab_update
Karel Zak [Mon, 8 Nov 2010 11:21:41 +0000 (12:21 +0100)]
libmount: add debug messages and fix typos in tab_update

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: rewrite update
Karel Zak [Mon, 8 Nov 2010 10:14:44 +0000 (11:14 +0100)]
libmount: rewrite update

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix Makefile and tests
Karel Zak [Mon, 8 Nov 2010 10:12:35 +0000 (11:12 +0100)]
libmount: fix Makefile and tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve function for work with mtab paths
Karel Zak [Tue, 2 Nov 2010 12:54:47 +0000 (13:54 +0100)]
libmount: improve function for work with mtab paths

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix comment for mnt_unlock_file()
Karel Zak [Tue, 2 Nov 2010 12:52:47 +0000 (13:52 +0100)]
libmount: fix comment for mnt_unlock_file()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add functions get mtab/utab paths
Karel Zak [Sun, 31 Oct 2010 00:05:51 +0000 (02:05 +0200)]
libmount: add functions get mtab/utab paths

13 years agotests: add libmount mtab update test
Karel Zak [Thu, 21 Oct 2010 07:00:50 +0000 (09:00 +0200)]
tests: add libmount mtab update test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: allow to overwrite mtab/fstab paths
Karel Zak [Thu, 21 Oct 2010 06:57:02 +0000 (08:57 +0200)]
libmount: allow to overwrite mtab/fstab paths

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add quoted optstr
Karel Zak [Wed, 20 Oct 2010 10:40:55 +0000 (12:40 +0200)]
tests: add quoted optstr

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: improve subtests initialization
Karel Zak [Wed, 20 Oct 2010 10:40:02 +0000 (12:40 +0200)]
tests: improve subtests initialization

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add LIBMOUNT_{MTAB,FSTAB}
Karel Zak [Tue, 19 Oct 2010 13:21:03 +0000 (15:21 +0200)]
libmount: add LIBMOUNT_{MTAB,FSTAB}

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add libmount lock test
Karel Zak [Tue, 19 Oct 2010 12:30:07 +0000 (14:30 +0200)]
tests: add libmount lock test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add libmount utils.c tests
Karel Zak [Tue, 19 Oct 2010 09:44:30 +0000 (11:44 +0200)]
tests: add libmount utils.c tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add libmount tags tests
Karel Zak [Mon, 18 Oct 2010 14:22:20 +0000 (16:22 +0200)]
tests: add libmount tags tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add libmount mtab tests
Karel Zak [Mon, 18 Oct 2010 13:46:12 +0000 (15:46 +0200)]
tests: add libmount mtab tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add libmount tab_parse.c tests
Karel Zak [Mon, 18 Oct 2010 12:42:42 +0000 (14:42 +0200)]
tests: add libmount tab_parse.c tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup fstab parser, improve mnt_tab errcb usage
Karel Zak [Mon, 18 Oct 2010 12:19:21 +0000 (14:19 +0200)]
libmount: cleanup fstab parser, improve mnt_tab errcb usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add libmount optstr.c tests
Karel Zak [Fri, 15 Oct 2010 13:53:33 +0000 (15:53 +0200)]
tests: add libmount optstr.c tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix mnt_optstr_apply_flags() to work with optional variables
Karel Zak [Fri, 15 Oct 2010 13:51:25 +0000 (15:51 +0200)]
libmount: fix mnt_optstr_apply_flags() to work with optional variables

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: use {src,build}dir variables for tests
Karel Zak [Thu, 14 Oct 2010 14:09:14 +0000 (16:09 +0200)]
tests: use {src,build}dir variables for tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve assert() and DBG() usage
Karel Zak [Tue, 12 Oct 2010 14:17:16 +0000 (16:17 +0200)]
libmount: improve assert() and DBG() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add umount(2) support
Karel Zak [Tue, 12 Oct 2010 13:04:28 +0000 (15:04 +0200)]
libmount: add umount(2) support

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_context_get_{fstab,mtab}()
Karel Zak [Wed, 6 Oct 2010 21:26:01 +0000 (23:26 +0200)]
libmount: add mnt_context_get_{fstab,mtab}()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_tab_find_pair()
Karel Zak [Wed, 6 Oct 2010 21:25:15 +0000 (23:25 +0200)]
libmount: add mnt_tab_find_pair()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: allows to swap source and target
Karel Zak [Mon, 4 Oct 2010 12:09:55 +0000 (14:09 +0200)]
libmount: allows to swap source and target

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup mount.h
Karel Zak [Mon, 4 Oct 2010 12:09:28 +0000 (14:09 +0200)]
libmount: cleanup mount.h

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: split context.c
Karel Zak [Mon, 4 Oct 2010 11:37:33 +0000 (13:37 +0200)]
libmount: split context.c

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup helpers support
Karel Zak [Mon, 4 Oct 2010 10:18:41 +0000 (12:18 +0200)]
libmount: cleanup helpers support

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: rewrite mountinfo/fstab parsers to use sscanf()
Karel Zak [Fri, 1 Oct 2010 11:05:58 +0000 (13:05 +0200)]
libmount: rewrite mountinfo/fstab parsers to use sscanf()

The old solution (without scanf()) was based on old code from
mount(8). It seems that the modern libc is able to provide all
necessary functionality by sscanf() and %ms directive.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix mount helpers call
Karel Zak [Thu, 30 Sep 2010 20:22:24 +0000 (22:22 +0200)]
libmount: fix mount helpers call

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: update mtab after mount(2)
Karel Zak [Thu, 30 Sep 2010 10:08:36 +0000 (12:08 +0200)]
libmount: update mtab after mount(2)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: always store rw/ro flags to mtab
Karel Zak [Thu, 30 Sep 2010 10:07:50 +0000 (12:07 +0200)]
libmount: always store rw/ro flags to mtab

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: update mount.sym
Karel Zak [Thu, 30 Sep 2010 09:02:50 +0000 (11:02 +0200)]
libmount: update mount.sym

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: extend mnt_update_* API
Karel Zak [Thu, 30 Sep 2010 08:42:20 +0000 (10:42 +0200)]
libmount: extend mnt_update_* API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mount(2) and /sbin/mount.<type> support
Karel Zak [Wed, 29 Sep 2010 21:42:43 +0000 (23:42 +0200)]
libmount: add mount(2) and /sbin/mount.<type> support

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mtab managment to context API
Karel Zak [Wed, 29 Sep 2010 10:23:59 +0000 (12:23 +0200)]
libmount: add mtab managment to context API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: use attribute __format__ for debug routines
Karel Zak [Wed, 29 Sep 2010 09:19:18 +0000 (11:19 +0200)]
libmount: use attribute __format__ for debug routines

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add FS detection
Karel Zak [Mon, 27 Sep 2010 23:26:31 +0000 (01:26 +0200)]
libmount: add FS detection

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: better permissions and optstr evaliation
Karel Zak [Mon, 27 Sep 2010 14:52:54 +0000 (16:52 +0200)]
libmount: better permissions and optstr evaliation

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add DBG() to optstr.c
Karel Zak [Mon, 27 Sep 2010 14:25:01 +0000 (16:25 +0200)]
libmount: add DBG() to optstr.c

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: minor cleanup in optstr.c
Karel Zak [Mon, 27 Sep 2010 10:16:59 +0000 (12:16 +0200)]
libmount: minor cleanup in optstr.c

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_optstr_fix_user
Karel Zak [Mon, 27 Sep 2010 10:14:41 +0000 (12:14 +0200)]
libmount: add mnt_optstr_fix_user

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: clean up mountflags usage
Karel Zak [Fri, 24 Sep 2010 23:48:38 +0000 (01:48 +0200)]
libmount: clean up mountflags usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve parsers return codes
Karel Zak [Fri, 24 Sep 2010 21:23:06 +0000 (23:23 +0200)]
libmount: improve parsers return codes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: rewrite optstr translation
Karel Zak [Fri, 24 Sep 2010 11:04:35 +0000 (13:04 +0200)]
libmount: rewrite optstr translation

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: implement mnt_context_subst_optstr()
Karel Zak [Tue, 21 Sep 2010 19:47:54 +0000 (21:47 +0200)]
libmount: implement mnt_context_subst_optstr()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add routines for uid=, git= and context= translation
Karel Zak [Tue, 21 Sep 2010 19:46:49 +0000 (21:46 +0200)]
libmount: add routines for uid=, git= and context= translation

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add utils for work with uid/gid
Karel Zak [Tue, 21 Sep 2010 19:44:19 +0000 (21:44 +0200)]
libmount: add utils for work with uid/gid

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add first part of high-level API
Karel Zak [Tue, 21 Sep 2010 11:11:55 +0000 (13:11 +0200)]
libmount: add first part of high-level API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup mount.sym
Karel Zak [Wed, 15 Sep 2010 14:57:19 +0000 (16:57 +0200)]
libmount: cleanup mount.sym

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_context
Karel Zak [Wed, 15 Sep 2010 14:56:15 +0000 (16:56 +0200)]
libmount: add mnt_context

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_optstr_get_userspace_mountflags()
Karel Zak [Wed, 15 Sep 2010 14:55:47 +0000 (16:55 +0200)]
libmount: add mnt_optstr_get_userspace_mountflags()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add MNT_FS_SWAP flag
Karel Zak [Wed, 15 Sep 2010 14:31:38 +0000 (16:31 +0200)]
libmount: add MNT_FS_SWAP flag

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup debug flags
Karel Zak [Wed, 15 Sep 2010 14:29:06 +0000 (16:29 +0200)]
libmount: cleanup debug flags

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve debugging, fix optstr prepend
Karel Zak [Wed, 15 Sep 2010 14:27:06 +0000 (16:27 +0200)]
libmount: improve debugging, fix optstr prepend

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add new pseudo filesystems
Karel Zak [Wed, 15 Sep 2010 14:23:54 +0000 (16:23 +0200)]
libmount: add new pseudo filesystems

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_fs_prepend_optstr()
Karel Zak [Tue, 14 Sep 2010 08:50:49 +0000 (10:50 +0200)]
libmount: add mnt_fs_prepend_optstr()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_optstr_prepend_option()
Karel Zak [Tue, 14 Sep 2010 08:42:44 +0000 (10:42 +0200)]
libmount: add mnt_optstr_prepend_option()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix optstr test
Karel Zak [Mon, 13 Sep 2010 15:17:14 +0000 (17:17 +0200)]
libmount: fix optstr test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: rewrite DBG() macro
Karel Zak [Mon, 13 Sep 2010 15:06:18 +0000 (17:06 +0200)]
libmount: rewrite DBG() macro

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add new psetudo filesystems
Karel Zak [Fri, 27 Aug 2010 08:14:32 +0000 (10:14 +0200)]
libmount: add new psetudo filesystems

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (tab_parse.c)
Karel Zak [Fri, 27 Aug 2010 08:11:09 +0000 (10:11 +0200)]
libmount: cleanup return codes (tab_parse.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (tab.c)
Karel Zak [Thu, 26 Aug 2010 12:35:36 +0000 (14:35 +0200)]
libmount: cleanup return codes (tab.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (optstr.c)
Karel Zak [Wed, 25 Aug 2010 10:14:40 +0000 (12:14 +0200)]
libmount: cleanup return codes (optstr.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (optmap.c)
Karel Zak [Wed, 25 Aug 2010 09:26:57 +0000 (11:26 +0200)]
libmount: cleanup return codes (optmap.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (lock.c)
Karel Zak [Wed, 25 Aug 2010 09:20:32 +0000 (11:20 +0200)]
libmount: cleanup return codes (lock.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (iter.c)
Karel Zak [Wed, 25 Aug 2010 08:55:10 +0000 (10:55 +0200)]
libmount: cleanup return codes (iter.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (fs.c)
Karel Zak [Tue, 24 Aug 2010 14:30:39 +0000 (16:30 +0200)]
libmount: cleanup return codes (fs.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup return codes (cache.c)
Karel Zak [Tue, 24 Aug 2010 14:17:16 +0000 (16:17 +0200)]
libmount: cleanup return codes (cache.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: clean up mnt_fs_set_optstr()
Karel Zak [Tue, 24 Aug 2010 14:03:50 +0000 (16:03 +0200)]
libmount: clean up mnt_fs_set_optstr()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve an rename API for mtab management
Karel Zak [Tue, 10 Aug 2010 13:27:23 +0000 (15:27 +0200)]
libmount: improve an rename API for mtab management

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: update tests
Karel Zak [Tue, 10 Aug 2010 13:26:59 +0000 (15:26 +0200)]
libmount: update tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: update mount.{h,sym}
Karel Zak [Fri, 6 Aug 2010 11:11:52 +0000 (13:11 +0200)]
libmount: update mount.{h,sym}

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: use mnt_fs for mtab API
Karel Zak [Fri, 6 Aug 2010 11:03:34 +0000 (13:03 +0200)]
libmount: use mnt_fs for mtab API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix datatype for mountflags
Karel Zak [Fri, 6 Aug 2010 09:50:39 +0000 (11:50 +0200)]
libmount: fix datatype for mountflags

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: remove unnecessary options container
Karel Zak [Thu, 5 Aug 2010 12:28:19 +0000 (14:28 +0200)]
libmount: remove unnecessary options container

It seems that we are able to be happy with option strings only. The
mnt_optls stuff was over-engineering.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add support for mtab managment
Karel Zak [Thu, 5 Aug 2010 11:47:37 +0000 (13:47 +0200)]
libmount: add support for mtab managment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib: fix mange() and unmangle() to handle NULL
Karel Zak [Thu, 5 Aug 2010 11:14:58 +0000 (13:14 +0200)]
lib: fix mange() and unmangle() to handle NULL

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: correctly use "none" values
Karel Zak [Thu, 5 Aug 2010 10:35:54 +0000 (12:35 +0200)]
libmount: correctly use "none" values

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: add support for fs-root (subvolumes and bind mounts)
Karel Zak [Thu, 5 Aug 2010 10:26:00 +0000 (12:26 +0200)]
findmnt: add support for fs-root (subvolumes and bind mounts)

This patch modifies the default output for SOURCE column. All btrfs
subvolume mountpoints and all bind-mount (where source is not root of
FS) will be printed as:

   SOURCE               TARGET
   /dev/sda1[/aaa]      /mnt/test

where /aaa is subvolume name or fs root for bind mounts, it means:

   # mount -t btrfs /dev/sda1 /mnt/test -o subvol=aaa

or:

   # mount --bind /aaa /mnt/test

The info about fs-root is 4th column in /proc/self/mountinfo.

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