summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_umount.c
diff options
context:
space:
mode:
authorKarel Zak2018-06-01 12:29:14 +0200
committerKarel Zak2018-06-01 12:29:14 +0200
commit8d6de22499827c3280ff07875fc0744b3a454516 (patch)
treeec15fe81d9f58c68a465c2e4c2680370358ad246 /libmount/src/context_umount.c
parentlibmount: improve MS_REC usage (diff)
downloadkernel-qcow2-util-linux-8d6de22499827c3280ff07875fc0744b3a454516.tar.gz
kernel-qcow2-util-linux-8d6de22499827c3280ff07875fc0744b3a454516.tar.xz
kernel-qcow2-util-linux-8d6de22499827c3280ff07875fc0744b3a454516.zip
libmount: don't use MS_MGC_VAL magic in mount(2) syscall
Specifying MS_MGC_VAL was required in kernel versions prior to 2.4, but since Linux 2.4 is no longer required and is ignored if specified The minimal kernel requirement for util-linux is Linux v2.6. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r--libmount/src/context_umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index 240ec3be6..81a650352 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -737,7 +737,7 @@ static int do_umount(struct libmnt_context *cxt)
-cxt->syscall_status));
rc = mount(src, mnt_fs_get_target(cxt->fs), NULL,
- MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL);
+ MS_REMOUNT | MS_RDONLY, NULL);
if (rc < 0) {
cxt->syscall_status = -errno;
DBG(CXT, ul_debugobj(cxt,