]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: allow to disable swap between source and target
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jul 2012 19:57:22 +0000 (21:57 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jul 2012 19:57:22 +0000 (21:57 +0200)
commite39cbb76033e689093da42453839afa9c8d4c8e5
treebaaddf234aae42639032f2437a3732aa78bbdad3
parent4633cc95a4697e55fdf4a2b6c65d7b89652bf83f
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>
libmount/docs/libmount-sections.txt
libmount/src/context.c
libmount/src/context_umount.c
libmount/src/libmount.h.in
libmount/src/libmount.sym
libmount/src/mountP.h