Commit Graph

76 Commits

Author SHA1 Message Date
Karel Zak 686a64670e libmount: add mnt_table_{first,last}_fs()
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20 13:48:43 +02:00
Karel Zak f8271ff872 libmount: add new function to docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20 12:41:53 +02:00
Ondrej Oprala 7b1333fa6a libmount: add missing declarations to libmount.h.in and documentation
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-08-01 11:23:02 +02:00
Karel Zak dcc15ce5af libmount: add mnt_table_find_mountpoint()
This is more robust implementation of mnt_get_mountpoint() that does
not ignore bind mountpoints (mount --bind /mnt /mnt) as it does not
depend on st_dev numbers.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-25 13:56:31 +01:00
Karel Zak 2029dbd9b1 docs: update year
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-15 15:18:22 +01:00
Karel Zak a3bb7e65c4 libmount: clean up header file
* don't teach people C by header files, so use warn_unused_result
   attribute only on places where we return allocated memory (to avoid
   leaks in applications).

 * merge multiple function attributes to the one list to make it
   usable with gtk-doc

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-15 14:59:22 +01:00
Karel Zak 4b9d67a23d libmount: add mnt_fs_get_propagation()
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10 15:58:52 +01:00
Ondrej Oprala e47a19312f libmount: read optional mountinfo fields
[kzak@redhat.com: - rename struct member and functions from
                    "propagation" to "optional fields"
                  - split the original patch
                  - fix parser]

Signed-off-by: Ondrej Oprala <ondrej.oprala@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10 14:52:24 +01:00
Karel Zak 6870636c7f libmount: add mnt_optstr_deduplicate_option()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-01 17:51:43 +02:00
Karel Zak e39cbb7603 libmount: allow to disable swap between source and target
In some cases (for example if only one mount argument is given) may be
mount request ambivalent:

	# mount /foo

and fstab:

	/dev/sda5	/foo	rw	0	0
	/foo		/bar	bind	0	0

The libmount allows to swap between source and target (if
source is not LABEL or UUID) by default. The new function

	mnt_context_disable_swapmatch()

allows to disable this feature.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-17 21:57:22 +02:00
Karel Zak b11c9b7ee3 libmount: rename mnt_context_fstab_applied to mnt_context_tab_applied
The function is also usable in umount to detect is mtab has been
applied.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-12 17:43:34 +02:00
Karel Zak 31a938ac38 build-sys: enable libmount and libblkid docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:54 +02:00
Karel Zak 677ff053f6 libmount: add mnt_table_find_devno()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-25 09:49:50 +02:00
Karel Zak 5d451abbbf libmount: add mnt_context_get_options()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-18 10:06:35 +02:00
Karel Zak e01c731992 libmount: add mnt_context_fstab_applied()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-17 11:36:32 +02:00
Karel Zak ce4dd666f4 libmount: add support to parse /proc/swaps
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 13:20:32 +02:00
Karel Zak 379e84390a libmount: cleanup flags usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-07 10:45:48 +01:00
Karel Zak 6699e742f2 libmount: add mnt_fs_streq_target() and export all mnt_fs_streq_*
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-02 15:53:55 +01:00
Karel Zak 3fcf5e1b79 docs: update copyright years
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-22 13:07:14 +01:00
Karel Zak ee3140752f libmount: cleanup docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-22 13:02:17 +01:00
Dave Reisner a33df88c45 libmount: remove teaser proto for mnt_table_get_name
This function was never implemented, but the proto has existed since the
inception of the library. As the libmnt_table struct doesn't include a
member necessary to carry the name of the table, simply discard this
prototype. If ever a need to break ABI comes up, perhaps this could be
revisited.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-02-22 11:52:44 +01:00
Karel Zak 58ca4ed1b4 build-sys: remove and ignore generated files
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-28 13:47:56 +02:00
Karel Zak 3fe1b06aba build-sys: fix gtk-doc distclean
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-27 14:22:36 +02:00
Karel Zak e6ecd606ae libmount: clean up docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-25 10:42:08 +02:00
Karel Zak 63de90d44f libmount: cleanup docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-23 01:27:39 +02:00
Karel Zak 2aefc0a8f2 build-sys: use top-level directory for libmount rather than shlibs/mount
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09 21:59:52 +02:00