* [PATCH] generic/532: do not break golden silence if attributes_mask is 0
@ 2019-05-08 3:11 Murphy Zhou
2019-05-08 3:26 ` Darrick J. Wong
0 siblings, 1 reply; 2+ messages in thread
From: Murphy Zhou @ 2019-05-08 3:11 UTC (permalink / raw)
To: fstests; +Cc: darrick.wong, Murphy Zhou
If the filesystem does not support STATX_ATTR, like NFS, setting
both attributes and attributes_mask to 0 seems the right thing to
do. attributes_mask can be 0 only if attributes is also 0.
This situation is covered by the "&" check in the next line.
Signed-off-by: Murphy Zhou <xzhou@redhat.com>
---
tests/generic/532 | 1 -
1 file changed, 1 deletion(-)
diff --git a/tests/generic/532 b/tests/generic/532
index ac8b7a89..3f8afa4a 100755
--- a/tests/generic/532
+++ b/tests/generic/532
@@ -44,7 +44,6 @@ check_statx_attributes()
echo "MASK:$mask:ATTRS:$attrs:" >> $seqres.full
test -z "$mask" && _notrun "xfs_io statx command does not support attributes_mask"
- test $(( mask )) -eq 0 && echo "attributes mask is zero"
test $(( attrs & ~(mask) )) -ne 0 && echo "attributes $attrs do not appear in mask $mask"
}
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] generic/532: do not break golden silence if attributes_mask is 0
2019-05-08 3:11 [PATCH] generic/532: do not break golden silence if attributes_mask is 0 Murphy Zhou
@ 2019-05-08 3:26 ` Darrick J. Wong
0 siblings, 0 replies; 2+ messages in thread
From: Darrick J. Wong @ 2019-05-08 3:26 UTC (permalink / raw)
To: Murphy Zhou; +Cc: fstests
On Wed, May 08, 2019 at 11:11:44AM +0800, Murphy Zhou wrote:
> If the filesystem does not support STATX_ATTR, like NFS, setting
> both attributes and attributes_mask to 0 seems the right thing to
> do. attributes_mask can be 0 only if attributes is also 0.
> This situation is covered by the "&" check in the next line.
>
> Signed-off-by: Murphy Zhou <xzhou@redhat.com>
Seems fine to me.
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
--D
> ---
> tests/generic/532 | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tests/generic/532 b/tests/generic/532
> index ac8b7a89..3f8afa4a 100755
> --- a/tests/generic/532
> +++ b/tests/generic/532
> @@ -44,7 +44,6 @@ check_statx_attributes()
> echo "MASK:$mask:ATTRS:$attrs:" >> $seqres.full
>
> test -z "$mask" && _notrun "xfs_io statx command does not support attributes_mask"
> - test $(( mask )) -eq 0 && echo "attributes mask is zero"
> test $(( attrs & ~(mask) )) -ne 0 && echo "attributes $attrs do not appear in mask $mask"
> }
>
> --
> 2.21.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-08 3:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08 3:11 [PATCH] generic/532: do not break golden silence if attributes_mask is 0 Murphy Zhou
2019-05-08 3:26 ` Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox