From: Xiao Yang <yangx.jy@cn.fujitsu.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: <guaneryu@gmail.com>, <linux-xfs@vger.kernel.org>,
<fstests@vger.kernel.org>
Subject: Re: [PATCH 03/24] generic/607: don't break on filesystems that don't support FSGETXATTR on dirs
Date: Thu, 17 Sep 2020 11:43:10 +0800 [thread overview]
Message-ID: <5F62DB4E.9040506@cn.fujitsu.com> (raw)
In-Reply-To: <20200917032730.GQ7955@magnolia>
于 2020/9/17 11:27, Darrick J. Wong 写道:
> On Thu, Sep 17, 2020 at 09:41:01AM +0800, Xiao Yang wrote:
>> On 2020/9/15 9:43, Darrick J. Wong wrote:
>>> From: Darrick J. Wong<darrick.wong@oracle.com>
>>>
>>> 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>
>>> ---
>>> common/rc | 10 ++++++++--
>>> tests/generic/607 | 5 +++++
>>> 2 files changed, 13 insertions(+), 2 deletions(-)
>>>
>>>
>>> diff --git a/common/rc b/common/rc
>>> index aa5a7409..f78b1cfc 100644
>>> --- a/common/rc
>>> +++ b/common/rc
>>> @@ -2162,6 +2162,12 @@ _require_xfs_io_command()
>>> local testfile=$TEST_DIR/$$.xfs_io
>>> local testio
>>> case $command in
>>> + "lsattr")
>>> + # Test xfs_io lsattr support and filesystem FS_IOC_FSSETXATTR
>>> + # support.
>>> + testio=`$XFS_IO_PROG -F -f -c "lsattr $param" $testfile 2>&1`
>>> + param_checked="$param"
>>> + ;;
>>> "chattr")
>>> if [ -z "$param" ]; then
>>> param=s
>>> @@ -3205,7 +3211,7 @@ _check_s_dax()
>>> if [ $exp_s_dax -eq 0 ]; then
>>> (( attributes& 0x2000 ))&& echo "$target has unexpected S_DAX flag"
>>> else
>>> - (( attributes& 0x2000 )) || echo "$target doen't have expected S_DAX flag"
>>> + (( attributes& 0x2000 )) || echo "$target doesn't have expected S_DAX flag"
>>> fi
>>> }
>>>
>>> @@ -3217,7 +3223,7 @@ _check_xflag()
>>> if [ $exp_xflag -eq 0 ]; then
>>> _test_inode_flag dax $target&& echo "$target has unexpected FS_XFLAG_DAX flag"
>>> else
>>> - _test_inode_flag dax $target || echo "$target doen't have expected FS_XFLAG_DAX flag"
>>> + _test_inode_flag dax $target || echo "$target doesn't have expected FS_XFLAG_DAX flag"
>>> fi
>>> }
>>>
>>> diff --git a/tests/generic/607 b/tests/generic/607
>>> index b15085ea..14d2c05f 100755
>>> --- a/tests/generic/607
>>> +++ b/tests/generic/607
>>> @@ -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."
>> Hi Darrick,
>>
>> Could you tell me which kernel version gets the issue? :-)
> ext4.
Hi Darrick,
I didn't get the issue by v5.7.0 xfs_io on v5.8.0 kernel:
----------------------------------------------------------------------------------
# blkid /dev/pmem0
/dev/pmem0: UUID="181f4d76-bc21-45b7-a6d2-e486f6cc479b" TYPE="ext4"
# df -h | grep pmem0
/dev/pmem0 2.0G 28K 1.8G 1% /mnt/xfstests/test
# strace -e ioctl xfs_io -c "lsattr -v" /mnt/xfstests/test
ioctl(3, FS_IOC_FSGETXATTR, 0x7ffdc7061d10) = 0
[] /mnt/xfstests/test
----------------------------------------------------------------------------------
Do I miss something?
Thanks,
Xiao Yang
> --D
>
>> Best Regards,
>> Xiao Yang
>>> +
>>> # If a/ is +x, check that a's new children
>>> # inherit +x from a/.
>>> test_xflag_inheritance1()
>>>
>>>
>>>
>>> .
>>>
>>
>>
>
> .
>
next prev parent reply other threads:[~2020-09-17 3:43 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 1:42 [PATCH 00/24] fstests: tons of random fixes Darrick J. Wong
2020-09-15 1:43 ` [PATCH 01/24] xfs/331: don't run this test if fallocate isn't supported Darrick J. Wong
2020-09-15 12:39 ` Zorro Lang
2020-09-17 7:50 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 02/24] generic/60[01]: fix test failure when setting new grace limit Darrick J. Wong
2020-09-15 12:55 ` Zorro Lang
2020-09-17 7:51 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 03/24] generic/607: don't break on filesystems that don't support FSGETXATTR on dirs Darrick J. Wong
2020-09-15 13:16 ` Zorro Lang
2020-09-17 1:41 ` Xiao Yang
2020-09-17 3:27 ` Darrick J. Wong
2020-09-17 3:43 ` Xiao Yang [this message]
2020-09-17 3:56 ` Darrick J. Wong
2020-09-17 7:52 ` Christoph Hellwig
2020-09-17 15:54 ` Darrick J. Wong
2020-09-17 16:02 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 04/24] xfs: skip tests that rely on allocation behaviors of the data device Darrick J. Wong
2020-09-16 2:04 ` Zorro Lang
2020-09-17 7:53 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 05/24] xfs/031: make sure we don't set rtinherit=1 on mkfs Darrick J. Wong
2020-09-16 2:21 ` Zorro Lang
2020-09-17 7:53 ` Christoph Hellwig
2020-09-17 15:57 ` Darrick J. Wong
2020-09-17 16:01 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 06/24] xfs: wrap xfs_db calls to the test device Darrick J. Wong
2020-09-16 2:25 ` Zorro Lang
2020-09-17 7:54 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 07/24] xfs/{111,137}: replace open-coded calls to repair with _scratch_xfs_repair Darrick J. Wong
2020-09-16 2:28 ` Zorro Lang
2020-09-17 7:54 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 08/24] xfs: replace open-coded calls to xfs_logprint with helpers Darrick J. Wong
2020-09-16 2:35 ` Zorro Lang
2020-09-17 7:54 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 09/24] xfs/070: add scratch log device options to direct repair invocation Darrick J. Wong
2020-09-16 2:42 ` Zorro Lang
2020-09-16 3:42 ` Darrick J. Wong
2020-09-16 11:25 ` Zorro Lang
2020-09-17 7:55 ` Christoph Hellwig
2020-09-15 1:43 ` [PATCH 10/24] xfs: add a _require_xfs_copy helper Darrick J. Wong
2020-09-16 3:29 ` Zorro Lang
2020-09-17 7:55 ` Christoph Hellwig
2020-09-15 1:44 ` [PATCH 11/24] overlay/{069,071}: fix undefined variables Darrick J. Wong
2020-09-15 8:48 ` Amir Goldstein
2020-09-15 1:44 ` [PATCH 12/24] overlay/020: make sure the system supports the required namespaces Darrick J. Wong
2020-09-15 8:46 ` Amir Goldstein
2020-09-15 1:44 ` [PATCH 13/24] generic/204: don't flood stdout with ENOSPC messages on an ENOSPC test Darrick J. Wong
2020-09-16 4:14 ` Zorro Lang
2020-09-17 7:56 ` Christoph Hellwig
2020-09-17 16:02 ` Darrick J. Wong
2020-09-15 1:44 ` [PATCH 14/24] common/xfs: extract minimum log size message from mkfs correctly Darrick J. Wong
2020-09-16 5:28 ` Zorro Lang
2020-09-17 7:56 ` Christoph Hellwig
2020-09-15 1:44 ` [PATCH 15/24] xfs/194: actually check if we got 512-byte blocks before proceeding Darrick J. Wong
2020-09-16 11:34 ` Zorro Lang
2020-09-16 21:07 ` Darrick J. Wong
2020-09-15 1:44 ` [PATCH 16/24] xfs/098: adapt to external log devices Darrick J. Wong
2020-09-16 11:36 ` Zorro Lang
2020-09-17 7:58 ` Christoph Hellwig
2020-09-15 1:44 ` [PATCH 17/24] xfs: refactor _xfs_check calls to the scratch device Darrick J. Wong
2020-09-16 11:39 ` Zorro Lang
2020-09-17 7:58 ` Christoph Hellwig
2020-09-17 16:03 ` Darrick J. Wong
2020-09-15 1:44 ` [PATCH 18/24] xfs/291: fix open-coded repair call to mdrestore'd fs image Darrick J. Wong
2020-09-16 11:41 ` Zorro Lang
2020-09-15 1:44 ` [PATCH 19/24] xfs/424: disable external devices Darrick J. Wong
2020-09-16 11:48 ` Zorro Lang
2020-09-17 7:59 ` Christoph Hellwig
2020-09-15 1:45 ` [PATCH 20/24] xfs/449: fix xfs info report output if realtime device specified Darrick J. Wong
2020-09-16 11:50 ` Zorro Lang
2020-09-17 7:59 ` Christoph Hellwig
2020-09-15 1:45 ` [PATCH 21/24] common/rc: teach _scratch_mkfs_sized to set a size on an xfs realtime volume Darrick J. Wong
2020-09-16 12:02 ` Zorro Lang
2020-09-17 8:00 ` Christoph Hellwig
2020-09-17 16:04 ` Darrick J. Wong
2020-09-18 2:08 ` [PATCH v2 " Darrick J. Wong
2020-09-15 1:45 ` [PATCH 22/24] xfs/141: run for longer with TIME_FACTOR Darrick J. Wong
2020-09-16 12:05 ` Zorro Lang
2020-09-17 8:01 ` Christoph Hellwig
2020-09-15 1:45 ` [PATCH 23/24] generic/204: sync before scrub hits EIO Darrick J. Wong
2020-09-16 12:09 ` Zorro Lang
2020-09-17 8:01 ` Christoph Hellwig
2020-09-15 1:45 ` [PATCH 24/24] check: try reloading modules Darrick J. Wong
2020-09-15 8:42 ` Amir Goldstein
2020-09-18 2:10 ` [PATCH 26/24] common: drop HOSTOS Darrick J. Wong
2020-09-18 2:11 ` [PATCH 27/24] common/rc: fix indentation in _scratch_mkfs_sized Darrick J. Wong
2020-09-19 5:13 ` Christoph Hellwig
[not found] ` <20200918020936.GJ7954@magnolia>
2020-09-19 5:13 ` [PATCH 25/24] common: kill _supported_os Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5F62DB4E.9040506@cn.fujitsu.com \
--to=yangx.jy@cn.fujitsu.com \
--cc=darrick.wong@oracle.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).