diff options
Diffstat (limited to 'libmount')
-rw-r--r-- | libmount/src/context_mount.c | 2 | ||||
-rw-r--r-- | libmount/src/context_umount.c | 2 | ||||
-rw-r--r-- | libmount/src/libmount.h.in | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index a8e84127c..6207bd814 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -764,8 +764,6 @@ static int do_mount(struct libmnt_context *cxt, const char *try_type) } type = try_type ? : mnt_fs_get_fstype(cxt->fs); - if (!(flags & MS_MGC_MSK)) - flags |= MS_MGC_VAL; if (try_type) flags |= MS_SILENT; 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, diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index c61514b59..e12a90f07 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -938,7 +938,8 @@ extern int mnt_context_set_syscall_status(struct libmnt_context *cxt, int status /* - * Magic mount flag number. Had to be or-ed to the flag values. + * Magic mount flag number. Had to be or-ed to the flag values. Deprecated and + * no more used since libmount v2.33; required for Linux <= 2.4. */ #ifndef MS_MGC_VAL #define MS_MGC_VAL 0xC0ED0000 /* magic flag number to indicate "new" flags */ |