Skip to content

Commit

Permalink
mount.snaphsot: mount with noatime to avoid copy up on read access
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Goldstein <[email protected]>
  • Loading branch information
amir73il committed Mar 7, 2017
1 parent 7414e39 commit dc0686a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/mount.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ fi
# https://github.com/amir73il/overlayfs/issues/1
#mntopts="$mntopts,redirect_dir=off"

# Avoid copy up on read access
mntopts="$mntopts,noatime"

lower="$mnt"
snapdir="$mnt/@"
snapshots="$snapdir/.snapshots"
Expand Down

0 comments on commit dc0686a

Please sign in to comment.