summaryrefslogtreecommitdiffstats
path: root/libmount/src
diff options
context:
space:
mode:
authorKarel Zak2018-06-01 14:07:53 +0200
committerKarel Zak2018-06-01 14:07:53 +0200
commit6691d53797ccc2e5ac840c5b1680fceaa23122db (patch)
treedba87a0303ecaeeb78d59e4f39ec1ad7ae73a22b /libmount/src
parentlibmount: don't use MS_MGC_VAL magic in mount(2) syscall (diff)
downloadkernel-qcow2-util-linux-6691d53797ccc2e5ac840c5b1680fceaa23122db.tar.gz
kernel-qcow2-util-linux-6691d53797ccc2e5ac840c5b1680fceaa23122db.tar.xz
kernel-qcow2-util-linux-6691d53797ccc2e5ac840c5b1680fceaa23122db.zip
mount: keep MS_MOVE as flag
The previous commit 4ebea84bb1ca6b0fa817588aba13de26c8d5e5a0 replaced all operations by strings, but it does not work for MS_MOVE as this operation is not supported in fstab by libmount. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src')
-rw-r--r--libmount/src/context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c
index 8e00b75a9..7add0e39e 100644
--- a/libmount/src/context.c
+++ b/libmount/src/context.c
@@ -892,6 +892,9 @@ const char *mnt_context_get_fstype(struct libmnt_context *cxt)
* @cxt: mount context
* @optstr: comma delimited mount options
*
+ * Note that that MS_MOVE cannot be specified as "string". It's operation that
+ * is no supported in fstab (etc.)
+ *
* Returns: 0 on success, negative number in case of error.
*/
int mnt_context_set_options(struct libmnt_context *cxt, const char *optstr)
@@ -1377,7 +1380,7 @@ struct libmnt_lock *mnt_context_get_lock(struct libmnt_context *cxt)
*
* Be careful if you want to use MS_REC flag -- in this case the bit is applied
* to all bind/slave/etc. options. If you want to mix more propadation flags
- * and/or bind, move operations than it's better to specify mount options by
+ * and/or bind operations than it's better to specify mount options by
* strings.
*
* Returns: 0 on success, negative number in case of error.