fs_mgr: Support nosymfollow mount option
Summary: The nosymfollow mount option was added to Linux 5.10, and the bionic headers support it. Allow mounting with the option set. Updated relevant CTS test too. Test: Successful build on master Change-Id: I0b280287e07ef8c485762b820dbbb26300144982 Signed-off-by: Abdelrahman Daim <adaim@meta.com>
This commit is contained in:
parent
7adba5989c
commit
589afaa880
3 changed files with 3 additions and 4 deletions
|
|
@ -39,10 +39,6 @@
|
|||
#include "fstab_priv.h"
|
||||
#include "logging_macros.h"
|
||||
|
||||
#if !defined(MS_LAZYTIME)
|
||||
#define MS_LAZYTIME (1 << 25)
|
||||
#endif
|
||||
|
||||
using android::base::EndsWith;
|
||||
using android::base::ParseByteCount;
|
||||
using android::base::ParseInt;
|
||||
|
|
@ -79,6 +75,7 @@ FlagList kMountFlagsList[] = {
|
|||
{"slave", MS_SLAVE},
|
||||
{"shared", MS_SHARED},
|
||||
{"lazytime", MS_LAZYTIME},
|
||||
{"nosymfollow", MS_NOSYMFOLLOW},
|
||||
{"defaults", 0},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -334,6 +334,7 @@ TEST(fs_mgr, fs_mgr_read_fstab_file_proc_mounts) {
|
|||
{"slave", MS_SLAVE},
|
||||
{"shared", MS_SHARED},
|
||||
{"lazytime", MS_LAZYTIME},
|
||||
{"nosymfollow", MS_NOSYMFOLLOW},
|
||||
{"defaults", 0},
|
||||
{0, 0},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -471,6 +471,7 @@ static struct {
|
|||
{ "private", MS_PRIVATE },
|
||||
{ "slave", MS_SLAVE },
|
||||
{ "shared", MS_SHARED },
|
||||
{ "nosymfollow", MS_NOSYMFOLLOW },
|
||||
{ "defaults", 0 },
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue