mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
overlay/041: use user defined overlay mount option
Mount non-samefs dirs with OVERLAY_MOUNT_OPTIONS, so user can opt-in for constant inode numbers on non-samefs setup (i.e. -o xino) when it is implemented. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
c0b87a4ad8
commit
30daf6bd5f
+4
-2
@@ -68,7 +68,8 @@ _scratch_mkfs
|
||||
upperdir=$OVL_BASE_SCRATCH_MNT/$OVL_UPPER
|
||||
workdir=$OVL_BASE_SCRATCH_MNT/$OVL_WORK
|
||||
|
||||
_overlay_scratch_mount_dirs $lowerdir $upperdir $workdir
|
||||
_overlay_scratch_mount_dirs $lowerdir $upperdir $workdir \
|
||||
$OVERLAY_MOUNT_OPTIONS
|
||||
|
||||
test_dir=$SCRATCH_MNT/test_dir/
|
||||
|
||||
@@ -184,7 +185,8 @@ _scratch_mkfs
|
||||
upperdir=$OVL_BASE_SCRATCH_MNT/ovl-upper
|
||||
workdir=$OVL_BASE_SCRATCH_MNT/ovl-work
|
||||
|
||||
_overlay_scratch_mount_dirs $middir:$lowerdir $upperdir $workdir
|
||||
_overlay_scratch_mount_dirs $middir:$lowerdir $upperdir $workdir \
|
||||
$OVERLAY_MOUNT_OPTIONS
|
||||
|
||||
# Copy up test_dir
|
||||
touch $test_dir/test_file
|
||||
|
||||
Reference in New Issue
Block a user