xfs/288: _notrun if xfs_db write doesn't support -d option
PATCH 1/1 xfs/288: _notrun if xfs_db write doesn't support -d option
Commit b3cf8b72334fd35ef961869506e5a72ab398bc82 help xfs/288 to support v5 filesystems testing, but there're still some old distributions don't support xfs_db 'write -d' usage. Then this case fails on them.
For compatible with older versions, skip this test on v5 xfs if xfs_db write command doesn't support -d option.
--- tests/xfs/288 | 8 ++++++++ 1 file changed, 8 insertions(+)
tests/xfs/288 +8 -0
@@ -40,6 +40,14 @@ _require_attrs _scratch_mkfs_xfs 2>/dev/null | _filter_mkfs 2>$tmp.mkfs >/dev/null . $tmp.mkfs +# Require write -d option to write invalid data into V5 filesystem +if [ $_fs_has_crcs -eq 1 ]; then + _scratch_xfs_db -x -c "help write" | egrep -q "(-d)" + if [ $? -ne 0 ]; then + _notrun "xfs_db write doesn't support -d option" + fi +fi + _scratch_mount touch $SCRATCH_MNT/$seq.attrfile
Signature · 1 line
2.14.4
Hi Zorro,
On xfsporgs-dev v4.9.0 which has supported -d option, xfs_db command in xfs/288 still failed
to set the header count of attr to 0. Is this issue casued by unsupported -d option on v5 XFS?
Thanks,
Xiao Yang
Quoted 32 lines · Zorro Lang
Commit
b3cf8b72334fd35ef961869506e5a72ab398bc82help xfs/288 to support v5 filesystems testing, but there're still some old distributions don't supportxfs_db'write -d' usage. Then this case fails on them.For compatible with older versions, skip this test on v5 xfs if
xfs_dbwrite command doesn't support -d option.Signed-off-by Zorro Lang <[email protected]>--- tests/xfs/288 | 8 ++++++++ 1 file changed, 8 insertions(+)tests/xfs/288 +8
-0@@ -40,6 +40,14 @@ _require_attrs _scratch_mkfs_xfs 2>/dev/null | _filter_mkfs 2>$tmp.mkfs >/dev/null . $tmp.mkfs +# Require write -d option to write invalid data into V5 filesystem +if [ $_fs_has_crcs -eq 1 ]; then + _scratch_xfs_db -x -c "help write" | egrep -q "(-d)" + if [ $? -ne 0 ]; then + _notrun "xfs_db write doesn't support -d option" + fi +fi + _scratch_mount touch $SCRATCH_MNT/$seq.attrfile
Quoted 6 lines · Xiao Yang
Hi Zorro,
On xfsporgs-dev v4.9.0 which has supported -d option,
xfs_dbcommand in xfs/288 still failed
to set the header count of attr to 0. Is this issue casued by unsupported -d option on v5 XFS?
Hi,
I sent below patch yesterday:
https://marc.info/?l=linux-xfs&m=153287978423915&w=2
I should sent it with this patch together ... Is that OK after you merge two patches?
Thanks,
Zorro
Quoted 44 lines
Thanks,
Xiao YangQuoted 22 lines · Zorro Lang
Commit
b3cf8b72334fd35ef961869506e5a72ab398bc82help xfs/288 to support v5 filesystems testing, but there're still some old distributions don't supportxfs_db'write -d' usage. Then this case fails on them.For compatible with older versions, skip this test on v5 xfs if
xfs_dbwrite command doesn't support -d option.Signed-off-by Zorro Lang <[email protected]>--- tests/xfs/288 | 8 ++++++++ 1 file changed, 8 insertions(+)tests/xfs/288 +1
-0@@ -40,6 +40,14 @@ _require_attrs _scratch_mkfs_xfs 2>/dev/null | _filter_mkfs 2>$tmp.mkfs >/dev/null . $tmp.mkfs +# Require write -d option to write invalid data into V5 filesystemtests/xfs/288 _require_attrs · line 53
Quoted 10 lines
tests/xfs/288 +7
-0+if [ $_fs_has_crcs -eq 1 ]; then + _scratch_xfs_db -x -c "help write" | egrep -q "(-d)" + if [ $? -ne 0 ]; then + _notrun "xfs_db write doesn't support -d option" + fi +fi + _scratch_mount touch $SCRATCH_MNT/$seq.attrfile--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Zorro Lang
Quoted 6 lines · Xiao Yang
Hi Zorro,
On xfsporgs-dev v4.9.0 which has supported -d option,
xfs_dbcommand in xfs/288 still failed
to set the header count of attr to 0. Is this issue casued by unsupported -d option on v5 XFS?
Quoted 7 lines
Hi,
I sent below patch yesterday:
https://marc.info/?l=linux-xfs&m=153287978423915&w=2I should sent it with this patch together ... Is that OK after you merge two patches?
Hi Zorro,
Setting the header count of attr still got the following error even though we merged two patches:
-----------------------------------------------------------------------
Cannot recalculate CRCs on this type of object
-----------------------------------------------------------------------
With -d option on V5 XFS, it seems that we cannot write attr and recalculate CRC before commit xfsprogs-dev 89baf91. Maybe we also need to check if xfs_db can write attr and recalculate CRC.
Thanks,
Xiao Yang
Quoted 48 lines
Thanks,
ZorroQuoted 35 lines
Thanks,
Xiao YangQuoted 31 lines · Zorro Lang
Commit
b3cf8b72334fd35ef961869506e5a72ab398bc82help xfs/288 to support v5 filesystems testing, but there're still some old distributions don't supportxfs_db'write -d' usage. Then this case fails on them.For compatible with older versions, skip this test on v5 xfs if
xfs_dbwrite command doesn't support -d option.Signed-off-by Zorro Lang<[email protected]>--- tests/xfs/288 | 8 ++++++++ 1 file changed, 8 insertions(+)tests/xfs/288 +8
-0@@ -40,6 +40,14 @@ _require_attrs _scratch_mkfs_xfs 2>/dev/null | _filter_mkfs 2>$tmp.mkfs>/dev/null . $tmp.mkfs +# Require write -d option to write invalid data into V5 filesystem +if [ $_fs_has_crcs -eq 1 ]; then + _scratch_xfs_db -x -c "help write" | egrep -q "(-d)" + if [ $? -ne 0 ]; then + _notrun "xfs_db write doesn't support -d option" + fi +fi + _scratch_mountQuoted 7 lines
tests/xfs/288 _require_attrs · line 53
Quoted 1 line
tests/xfs/288 +0
-0touch $SCRATCH_MNT/$seq.attrfile--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html.
Quoted 17 lines · Xiao Yang
Quoted 7 lines · Zorro Lang
Quoted 6 lines · Xiao Yang
Hi Zorro,
On xfsporgs-dev v4.9.0 which has supported -d option,
xfs_dbcommand in xfs/288 still failed
to set the header count of attr to 0. Is this issue casued by unsupported -d option on v5 XFS?Quoted 7 lines
Hi,
I sent below patch yesterday:
https://marc.info/?l=linux-xfs&m=153287978423915&w=2I should sent it with this patch together ... Is that OK after you merge two patches?
Hi Zorro,
Quoted 7 lines
Setting the header count of attr still got the following error even though we merged two patches:
-----------------------------------------------------------------------
Cannot recalculate CRCs on this type of object
-----------------------------------------------------------------------With -d option on V5 XFS, it seems that we cannot write attr and recalculate CRC before commit xfsprogs-dev 89baf91. Maybe we also need to check if
xfs_dbcan write attr and recalculate CRC.
Hi Xiao,
Looks like xfs_db write command hasn't supported to write attr blocks on 4.9 version (refer to xfsprogs commit 89baf918bf6092fa91d06c9e49a766fad31089d8, and related patches. I didn't try it, but I think it's.)
So maybe I should check if xfs_db can write attr, not just check if it has -d option :)
Thanks,
Zorro
Quoted 55 lines
Thanks,
Xiao YangQuoted 48 lines
Thanks,
ZorroQuoted 35 lines
Thanks,
Xiao YangQuoted 31 lines · Zorro Lang
Commit
b3cf8b72334fd35ef961869506e5a72ab398bc82help xfs/288 to support v5 filesystems testing, but there're still some old distributions don't supportxfs_db'write -d' usage. Then this case fails on them.For compatible with older versions, skip this test on v5 xfs if
xfs_dbwrite command doesn't support -d option.Signed-off-by Zorro Lang<[email protected]>--- tests/xfs/288 | 8 ++++++++ 1 file changed, 8 insertions(+)tests/xfs/288 +8
-0@@ -40,6 +40,14 @@ _require_attrs _scratch_mkfs_xfs 2>/dev/null | _filter_mkfs 2>$tmp.mkfs>/dev/null . $tmp.mkfs +# Require write -d option to write invalid data into V5 filesystem +if [ $_fs_has_crcs -eq 1 ]; then + _scratch_xfs_db -x -c "help write" | egrep -q "(-d)" + if [ $? -ne 0 ]; then + _notrun "xfs_db write doesn't support -d option" + fi +fi + _scratch_mountQuoted 7 lines
tests/xfs/288 _require_attrs · line 53
Quoted 1 line
tests/xfs/288 +0
-0touch $SCRATCH_MNT/$seq.attrfile--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html.
Quoted 25 lines · Zorro Lang
Quoted 17 lines · Xiao Yang
Quoted 7 lines · Zorro Lang
Quoted 6 lines · Xiao Yang
Hi Zorro,
On xfsporgs-dev v4.9.0 which has supported -d option,
xfs_dbcommand in xfs/288 still failed
to set the header count of attr to 0. Is this issue casued by unsupported -d option on v5 XFS?Quoted 7 lines
Hi,
I sent below patch yesterday:
https://marc.info/?l=linux-xfs&m=153287978423915&w=2I should sent it with this patch together ... Is that OK after you merge two patches?
Hi Zorro,
Quoted 7 lines
Setting the header count of attr still got the following error even though we merged two patches:
-----------------------------------------------------------------------
Cannot recalculate CRCs on this type of object
-----------------------------------------------------------------------With -d option on V5 XFS, it seems that we cannot write attr and recalculate CRC before commit xfsprogs-dev 89baf91. Maybe we also need to check if
xfs_dbcan write attr and recalculate CRC.
Quoted 8 lines
Hi Xiao,
Looks like
xfs_dbwrite command hasn't supported to write attr blocks on 4.9 version (refer to xfsprogs commit89baf918bf6092fa91d06c9e49a766fad31089d8, and related patches. I didn't try it, but I think it's.)So maybe I should check if
xfs_dbcan write attr, not just check if it has -d option :)
Hi Zorro,
Agreed, and i am glad to review your v2 patch. :-)
Thanks,
Xiao Yang
Quoted 57 lines
Thanks,
ZorroQuoted 51 lines
Thanks,
Xiao YangQuoted 46 lines
Thanks,
ZorroQuoted 35 lines
Thanks,
Xiao YangQuoted 31 lines · Zorro Lang
Commit
b3cf8b72334fd35ef961869506e5a72ab398bc82help xfs/288 to support v5 filesystems testing, but there're still some old distributions don't supportxfs_db'write -d' usage. Then this case fails on them.For compatible with older versions, skip this test on v5 xfs if
xfs_dbwrite command doesn't support -d option.Signed-off-by Zorro Lang<[email protected]>--- tests/xfs/288 | 8 ++++++++ 1 file changed, 8 insertions(+)tests/xfs/288 +8
-0@@ -40,6 +40,14 @@ _require_attrs _scratch_mkfs_xfs 2>/dev/null | _filter_mkfs 2>$tmp.mkfs>/dev/null . $tmp.mkfs +# Require write -d option to write invalid data into V5 filesystem +if [ $_fs_has_crcs -eq 1 ]; then + _scratch_xfs_db -x -c "help write" | egrep -q "(-d)" + if [ $? -ne 0 ]; then + _notrun "xfs_db write doesn't support -d option" + fi +fi + _scratch_mountQuoted 6 lines
tests/xfs/288 _require_attrs · line 53
Quoted 1 line
tests/xfs/288 +0
-0touch $SCRATCH_MNT/$seq.attrfile--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html.
.