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>
}
type = try_type ? : mnt_fs_get_fstype(cxt->fs);
- if (!(flags & MS_MGC_MSK))
- flags |= MS_MGC_VAL;
if (try_type)
flags |= MS_SILENT;
-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,
/*
- * 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 */