Skip to content

Commit

Permalink
mount.snapshot: mount prev snapshot with nfs_export=nested
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Goldstein <[email protected]>
  • Loading branch information
amir73il committed Sep 2, 2018
1 parent eb3d105 commit 598a627
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/mount.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ mount_old_snapshots()
# (curr snapshot), we need to remove the "origin" xattr
# of old $lower, otherwise mount will fail (-ESTALE)
setfattr -x "trusted.overlay.origin" $oldsnap/u

# ...and mount with nfs_export=nested, otherwise merge
# dir origin fh verification will fail
snapmntopts="$snapmntopts,nfs_export=nested"
mount -i -t overlay "$dev@$old" "$oldmnt" \
-o"ro,upperdir=$oldsnap/u,workdir=$oldsnap/w,lowerdir=$old_snapshots,$snapmntopts"
fi
Expand Down

0 comments on commit 598a627

Please sign in to comment.