diff options
author | Chunwei Chen <[email protected]> | 2016-04-01 13:12:06 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-04-05 18:55:59 -0700 |
commit | 676007719462edf6ae1f0779252b99a0cb86b630 (patch) | |
tree | 0bcbc7b414b0668f8bc9fdd0becea8c50a51ceee /cmd/mount_zfs/mount_zfs.c | |
parent | 704cd0758a1a4ecef47b0dfa097acd94c8e4f57d (diff) |
Make zfs mount according to relatime config in dataset
Also enable lazytime in mount.zfs
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #4482
Diffstat (limited to 'cmd/mount_zfs/mount_zfs.c')
-rw-r--r-- | cmd/mount_zfs/mount_zfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c index 3a0462127..b78c91c7c 100644 --- a/cmd/mount_zfs/mount_zfs.c +++ b/cmd/mount_zfs/mount_zfs.c @@ -78,7 +78,10 @@ static const option_map_t option_map[] = { { MNTOPT_RELATIME, MS_RELATIME, ZS_COMMENT }, #endif #ifdef MS_STRICTATIME - { MNTOPT_DFRATIME, MS_STRICTATIME, ZS_COMMENT }, + { MNTOPT_STRICTATIME, MS_STRICTATIME, ZS_COMMENT }, +#endif +#ifdef MS_LAZYTIME + { MNTOPT_LAZYTIME, MS_LAZYTIME, ZS_COMMENT }, #endif { MNTOPT_CONTEXT, MS_COMMENT, ZS_COMMENT }, { MNTOPT_FSCONTEXT, MS_COMMENT, ZS_COMMENT }, |