diff options
author | Chunwei Chen <[email protected]> | 2016-04-01 13:12:06 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-02-03 11:58:19 -0800 |
commit | 10fbf7c406abd8812179e5a3a7883cad843741af (patch) | |
tree | 8f59f586db47ae19f5737d54192db2ae46250d74 /cmd/mount_zfs | |
parent | 1ad7f89628ebb4efff7f9fbc34ef509ae18a753b (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')
-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 bd860cb2e..b6f58b9b3 100644 --- a/cmd/mount_zfs/mount_zfs.c +++ b/cmd/mount_zfs/mount_zfs.c @@ -77,7 +77,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 }, |