public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4/018: fix mismatch wildcard with debugfs
@ 2018-10-11 13:14 Yufen Yu
  2018-10-11 13:45 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Yufen Yu @ 2018-10-11 13:14 UTC (permalink / raw)
  To: fstests; +Cc: Yufen Yu

For the new version of debugfs(v1.44.0+), it changes "File ACL:" format
from "%sFile ACL: %llu    Directory ACL: %d\n" to "%sFile ACL: %llu\n".

Thus, update this case accordingly.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
---
 tests/ext4/018 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ext4/018 b/tests/ext4/018
index 0116c5f7..eb6d827b 100755
--- a/tests/ext4/018
+++ b/tests/ext4/018
@@ -55,7 +55,7 @@ echo "+ check fs"
 e2fsck -fn "${SCRATCH_DEV}" >> $seqres.full 2>&1 || _fail "fsck should not fail"
 
 echo "+ corrupt image"
-blk="$(debugfs -R 'stat /attrfile' "${SCRATCH_DEV}" 2> /dev/null | grep 'File ACL:' | sed -e 's/^.*File ACL: \([0-9]*\).*Directory.*$/\1/g')"
+blk="$(debugfs -R 'stat /attrfile' "${SCRATCH_DEV}" 2> /dev/null | grep 'File ACL:' | sed -e 's/^.*File ACL: \([0-9]*\)/\1/g')"
 $XFS_IO_PROG -f -c "pwrite -S 0x62 $((blk * blksz + 20)) 8" "${SCRATCH_DEV}" >> $seqres.full
 
 echo "+ mount image"
-- 
2.13.6

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

* Re: [PATCH] ext4/018: fix mismatch wildcard with debugfs
  2018-10-11 13:14 [PATCH] ext4/018: fix mismatch wildcard with debugfs Yufen Yu
@ 2018-10-11 13:45 ` Theodore Y. Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Y. Ts'o @ 2018-10-11 13:45 UTC (permalink / raw)
  To: Yufen Yu; +Cc: fstests

On Thu, Oct 11, 2018 at 09:14:10PM +0800, Yufen Yu wrote:
> For the new version of debugfs(v1.44.0+), it changes "File ACL:" format
> from "%sFile ACL: %llu    Directory ACL: %d\n" to "%sFile ACL: %llu\n".
> 
> Thus, update this case accordingly.
> 
> Signed-off-by: Yufen Yu <yuyufen@huawei.com>

Thanks, I don't normally running -g fuzzers so I didn't notice this.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>

> ---
>  tests/ext4/018 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/ext4/018 b/tests/ext4/018
> index 0116c5f7..eb6d827b 100755
> --- a/tests/ext4/018
> +++ b/tests/ext4/018
> @@ -55,7 +55,7 @@ echo "+ check fs"
>  e2fsck -fn "${SCRATCH_DEV}" >> $seqres.full 2>&1 || _fail "fsck should not fail"
>  
>  echo "+ corrupt image"
> -blk="$(debugfs -R 'stat /attrfile' "${SCRATCH_DEV}" 2> /dev/null | grep 'File ACL:' | sed -e 's/^.*File ACL: \([0-9]*\).*Directory.*$/\1/g')"
> +blk="$(debugfs -R 'stat /attrfile' "${SCRATCH_DEV}" 2> /dev/null | grep 'File ACL:' | sed -e 's/^.*File ACL: \([0-9]*\)/\1/g')"
>  $XFS_IO_PROG -f -c "pwrite -S 0x62 $((blk * blksz + 20)) 8" "${SCRATCH_DEV}" >> $seqres.full
>  
>  echo "+ mount image"
> -- 
> 2.13.6
> 

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

end of thread, other threads:[~2018-10-11 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-11 13:14 [PATCH] ext4/018: fix mismatch wildcard with debugfs Yufen Yu
2018-10-11 13:45 ` Theodore Y. Ts'o

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