FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] xfs/440: skip test if the dax mount option is enabled
@ 2022-12-23 10:21 Xiao Yang
  2023-01-13  4:53 ` yangx.jy
  0 siblings, 1 reply; 5+ messages in thread
From: Xiao Yang @ 2022-12-23 10:21 UTC (permalink / raw)
  To: djwong, fstests; +Cc: zlang, Xiao Yang

With the enabled dax mount option, this test doesn't
work well because unwritten extents will not be allocated
according to the CoW extent size hint.

Try to fix the following error by the patch:
$./check xfs/440
    ...
     fsgqa 64 0 0
     Reflink and CoW
     root 0 0 0
    -fsgqa 1152 0 0
    +fsgqa 128 0 0
     Sync
     root 0 0 0
    ...

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
---
 tests/xfs/440 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/xfs/440 b/tests/xfs/440
index 496ee04e..eb9fbd73 100755
--- a/tests/xfs/440
+++ b/tests/xfs/440
@@ -23,6 +23,7 @@ _require_quota
 _require_scratch_reflink
 _require_cp_reflink
 _require_user
+_exclude_scratch_mount_option dax
 
 echo "Format and mount"
 _scratch_mkfs > "$seqres.full" 2>&1
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] xfs/440: skip test if the dax mount option is enabled
  2022-12-23 10:21 [PATCH] xfs/440: skip test if the dax mount option is enabled Xiao Yang
@ 2023-01-13  4:53 ` yangx.jy
  2023-01-13 21:33   ` Darrick J. Wong
  0 siblings, 1 reply; 5+ messages in thread
From: yangx.jy @ 2023-01-13  4:53 UTC (permalink / raw)
  To: djwong@kernel.org; +Cc: zlang@kernel.org, fstests@vger.kernel.org

Hi Darrick,

Is there any comment on the patch?

Best Regards,
Xiao Yang

-----Original Message-----
From: Yang, Xiao/杨 晓 <yangx.jy@fujitsu.com> 
Sent: 2022年12月23日 18:22
To: djwong@kernel.org; fstests@vger.kernel.org
Cc: zlang@kernel.org; Yang, Xiao/杨 晓 <yangx.jy@fujitsu.com>
Subject: [PATCH] xfs/440: skip test if the dax mount option is enabled

With the enabled dax mount option, this test doesn't work well because unwritten extents will not be allocated according to the CoW extent size hint.

Try to fix the following error by the patch:
$./check xfs/440
    ...
     fsgqa 64 0 0
     Reflink and CoW
     root 0 0 0
    -fsgqa 1152 0 0
    +fsgqa 128 0 0
     Sync
     root 0 0 0
    ...

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
---
 tests/xfs/440 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/xfs/440 b/tests/xfs/440 index 496ee04e..eb9fbd73 100755
--- a/tests/xfs/440
+++ b/tests/xfs/440
@@ -23,6 +23,7 @@ _require_quota
 _require_scratch_reflink
 _require_cp_reflink
 _require_user
+_exclude_scratch_mount_option dax
 
 echo "Format and mount"
 _scratch_mkfs > "$seqres.full" 2>&1
--
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xfs/440: skip test if the dax mount option is enabled
  2023-01-13  4:53 ` yangx.jy
@ 2023-01-13 21:33   ` Darrick J. Wong
  2023-01-18  8:24     ` Xiao Yang
  2023-01-18  8:29     ` Xiao Yang
  0 siblings, 2 replies; 5+ messages in thread
From: Darrick J. Wong @ 2023-01-13 21:33 UTC (permalink / raw)
  To: yangx.jy@fujitsu.com; +Cc: zlang@kernel.org, fstests@vger.kernel.org

On Fri, Jan 13, 2023 at 04:53:41AM +0000, yangx.jy@fujitsu.com wrote:
> Hi Darrick,
> 
> Is there any comment on the patch?

What happens if you set DAXINHERIT on the root directory and omit the
mount options?  Does it still fail?

--D


> Best Regards,
> Xiao Yang
> 
> -----Original Message-----
> From: Yang, Xiao/杨 晓 <yangx.jy@fujitsu.com> 
> Sent: 2022年12月23日 18:22
> To: djwong@kernel.org; fstests@vger.kernel.org
> Cc: zlang@kernel.org; Yang, Xiao/杨 晓 <yangx.jy@fujitsu.com>
> Subject: [PATCH] xfs/440: skip test if the dax mount option is enabled
> 
> With the enabled dax mount option, this test doesn't work well because unwritten extents will not be allocated according to the CoW extent size hint.
> 
> Try to fix the following error by the patch:
> $./check xfs/440
>     ...
>      fsgqa 64 0 0
>      Reflink and CoW
>      root 0 0 0
>     -fsgqa 1152 0 0
>     +fsgqa 128 0 0
>      Sync
>      root 0 0 0
>     ...
> 
> Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
> ---
>  tests/xfs/440 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/xfs/440 b/tests/xfs/440 index 496ee04e..eb9fbd73 100755
> --- a/tests/xfs/440
> +++ b/tests/xfs/440
> @@ -23,6 +23,7 @@ _require_quota
>  _require_scratch_reflink
>  _require_cp_reflink
>  _require_user
> +_exclude_scratch_mount_option dax
>  
>  echo "Format and mount"
>  _scratch_mkfs > "$seqres.full" 2>&1
> --
> 2.25.1
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xfs/440: skip test if the dax mount option is enabled
  2023-01-13 21:33   ` Darrick J. Wong
@ 2023-01-18  8:24     ` Xiao Yang
  2023-01-18  8:29     ` Xiao Yang
  1 sibling, 0 replies; 5+ messages in thread
From: Xiao Yang @ 2023-01-18  8:24 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: zlang@kernel.org, fstests@vger.kernel.org

On 2023/1/14 5:33, Darrick J. Wong wrote:
> On Fri, Jan 13, 2023 at 04:53:41AM +0000,yangx.jy@fujitsu.com  wrote:
>> Hi Darrick,
>>
>> Is there any comment on the patch?
> What happens if you set DAXINHERIT on the root directory and omit the
> mount options?  Does it still fail?
Hi Darrick,

Yes, it still failed.  I have reviewed your patch set fixing the issue.

Thanks a lot.

Best Regards,
Xiao Yang
> 
> --D
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xfs/440: skip test if the dax mount option is enabled
  2023-01-13 21:33   ` Darrick J. Wong
  2023-01-18  8:24     ` Xiao Yang
@ 2023-01-18  8:29     ` Xiao Yang
  1 sibling, 0 replies; 5+ messages in thread
From: Xiao Yang @ 2023-01-18  8:29 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: zlang@kernel.org, fstests@vger.kernel.org

On 2023/1/14 5:33, Darrick J. Wong wrote:
> On Fri, Jan 13, 2023 at 04:53:41AM +0000,yangx.jy@fujitsu.com  wrote:
>> Hi Darrick,
>>
>> Is there any comment on the patch?
> What happens if you set DAXINHERIT on the root directory and omit the
> mount options?  Does it still fail?
Hi Darrick,

Yes, it still failed.  I have reviewed your patch set fixing the issue.

Thanks a lot.

Best Regards,
Xiao Yang
> 
> --D
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-18  9:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-23 10:21 [PATCH] xfs/440: skip test if the dax mount option is enabled Xiao Yang
2023-01-13  4:53 ` yangx.jy
2023-01-13 21:33   ` Darrick J. Wong
2023-01-18  8:24     ` Xiao Yang
2023-01-18  8:29     ` Xiao Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox