summaryrefslogtreecommitdiffstats
path: root/libmount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2012-07-17 21:57:22 +0200
committerKarel Zak2012-07-17 21:57:22 +0200
commite39cbb76033e689093da42453839afa9c8d4c8e5 (patch)
treebaaddf234aae42639032f2437a3732aa78bbdad3 /libmount/src/mountP.h
parentdocs: update TODO file (diff)
downloadkernel-qcow2-util-linux-e39cbb76033e689093da42453839afa9c8d4c8e5.tar.gz
kernel-qcow2-util-linux-e39cbb76033e689093da42453839afa9c8d4c8e5.tar.xz
kernel-qcow2-util-linux-e39cbb76033e689093da42453839afa9c8d4c8e5.zip
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>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r--libmount/src/mountP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h
index a2922c2b3..0ef073a69 100644
--- a/libmount/src/mountP.h
+++ b/libmount/src/mountP.h
@@ -335,6 +335,7 @@ struct libmnt_context
#define MNT_FL_NOCANONICALIZE (1 << 9)
#define MNT_FL_RDONLY_UMOUNT (1 << 11) /* remount,ro after EBUSY umount(2) */
#define MNT_FL_FORK (1 << 12)
+#define MNT_FL_NOSWAPMATCH (1 << 13)
#define MNT_FL_EXTERN_FS (1 << 15) /* cxt->fs is not private */
#define MNT_FL_EXTERN_FSTAB (1 << 16) /* cxt->fstab is not private */