diff options
| -rw-r--r-- | libmount/src/optmap.c | 2 | ||||
| -rw-r--r-- | tests/expected/mount/special | 2 | ||||
| -rwxr-xr-x | tests/ts/mount/special | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libmount/src/optmap.c b/libmount/src/optmap.c index b15fd7ae07..3a91f30d41 100644 --- a/libmount/src/optmap.c +++ b/libmount/src/optmap.c @@ -147,7 +147,7 @@ static const struct libmnt_optmap linux_flags_map[] = */ static const struct libmnt_optmap userspace_opts_map[] = { - { "defaults", 0, 0 }, /* default options */ + { "defaults", 0, MNT_NOHLPS }, /* default options */ { "auto", MNT_MS_NOAUTO, MNT_NOHLPS | MNT_INVERT | MNT_NOMTAB }, /* Can be mounted using -a */ { "noauto", MNT_MS_NOAUTO, MNT_NOHLPS | MNT_NOMTAB }, /* Can only be mounted explicitly */ diff --git a/tests/expected/mount/special b/tests/expected/mount/special index 99997d354f..820a74a9fc 100644 --- a/tests/expected/mount/special +++ b/tests/expected/mount/special @@ -1 +1 @@ -/sbin/mount.mytest called with "/foo /bar -o rw" +/sbin/mount.mytest called with "/foo /bar -o rw,foo" diff --git a/tests/ts/mount/special b/tests/ts/mount/special index 088a1ac784..87ebbf60f9 100755 --- a/tests/ts/mount/special +++ b/tests/ts/mount/special @@ -35,7 +35,7 @@ echo "$0 called with \"$*\"" EOF chmod +x $MOUNTER -$TS_CMD_MOUNT -t mytest /foo /bar &> $TS_OUTPUT +$TS_CMD_MOUNT -t mytest -o foo,defaults /foo /bar &> $TS_OUTPUT rm -f $MOUNTER ts_finalize |
