mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/607: don't break on filesystems that don't support FSGETXATTR on dirs
This test requires that the filesystem support calling FSGETXATTR on regular files and directories to make sure the FS_XFLAG_DAX flag works. The _require_xfs_io_command tests a regular file but doesn't check directories, so generic/607 should do that itself. Also fix some typos. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
4f9dd73596
commit
69a4ba7303
@@ -38,6 +38,11 @@ _require_scratch
|
||||
_require_dax_iflag
|
||||
_require_xfs_io_command "lsattr" "-v"
|
||||
|
||||
# Make sure we can call FSGETXATTR on a directory...
|
||||
output="$($XFS_IO_PROG -c "lsattr -v" $TEST_DIR 2>&1)"
|
||||
echo "$output" | grep -q "Inappropriate ioctl for device" && \
|
||||
_notrun "$FSTYP: FSGETXATTR not supported on directories."
|
||||
|
||||
# If a/ is +x, check that a's new children
|
||||
# inherit +x from a/.
|
||||
test_xflag_inheritance1()
|
||||
|
||||
Reference in New Issue
Block a user