ext4/026: skip test if kernel does not support the ea_inode feature
PATCH 1/1 ext4/026: skip test if kernel does not support the ea_inode feature
--- tests/ext4/026 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/ext4/026 +2 -1
@@ -53,7 +53,8 @@ _require_attrs _require_ext4_mkfs_feature ea_inode _scratch_mkfs_ext4 -O ea_inode >/dev/null 2>&1 -_scratch_mount +_scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support ea_inode feature on $FSTYP" # Sets an extended attribute on a file. attr_set()
Signature · 1 line
2.11.0.rc0.7.gbe5a750
Quoted 10 lines · Theodore Ts'o
Signed-off-by Theodore Ts'o <[email protected]>--- tests/ext4/026 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/ext4/026 +0
-0
tests/ext4/026 _require_attrs · line 57
Quoted 6 lines
tests/ext4/026 +2
-1@@ -53,7 +53,8 @@ _require_attrs _require_ext4_mkfs_feature ea_inode _scratch_mkfs_ext4 -O ea_inode >/dev/null 2>&1 -_scratch_mount +_scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support ea_inode feature on $FSTYP"
Needs to be in a _requires check?
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 13 lines · Dave Chinner
Quoted 12 lines · Theodore Ts'o
Signed-off-by Theodore Ts'o <[email protected]>--- tests/ext4/026 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/ext4/026 +0
-0@@ -53,7 +53,8 @@ _require_attrs _require_ext4_mkfs_feature ea_inode
Quoted 6 lines
tests/ext4/026 _require_attrs · line 57
Quoted 4 lines
tests/ext4/026 +2
-1_scratch_mkfs_ext4 -O ea_inode >/dev/null 2>&1 -_scratch_mount +_scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support ea_inode feature on $FSTYP"Needs to be in a
_requirescheck?
There's only one test currently testing ea_inode at the moment, but sure, I can make it into a _requires check.
- Ted
Quoted 21 lines · Theodore Ts'o
Quoted 13 lines · Dave Chinner
Quoted 12 lines · Theodore Ts'o
Signed-off-by Theodore Ts'o <[email protected]>--- tests/ext4/026 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/ext4/026 +0
-0@@ -53,7 +53,8 @@ _require_attrs _require_ext4_mkfs_feature ea_inodeQuoted 6 lines
tests/ext4/026 _require_attrs · line 57
Quoted 4 lines
tests/ext4/026 +2
-1_scratch_mkfs_ext4 -O ea_inode >/dev/null 2>&1 -_scratch_mount +_scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support ea_inode feature on $FSTYP"Needs to be in a
_requirescheck?
Quoted 2 lines
There's only one test currently testing
ea_inodeat the moment, but sure, I can make it into a_requirescheck.
I note there's a _require_ext4_mkfs_feature check above. Perhaps just turn that into a _require_ext4_feature that checks both mkfs and whether the kernel supports the functionality? That's typically what we've done in the past - one _require rule to check all aspects of support needed to use the feature...
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 22 lines · Dave Chinner
Quoted 21 lines · Theodore Ts'o
Quoted 19 lines · Dave Chinner
Quoted 10 lines · Theodore Ts'o
Signed-off-by Theodore Ts'o <[email protected]>--- tests/ext4/026 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/ext4/026 +0
-0tests/ext4/026 _require_attrs · line 57
Quoted 6 lines
tests/ext4/026 +2
-1@@ -53,7 +53,8 @@ _require_attrs _require_ext4_mkfs_feature ea_inode _scratch_mkfs_ext4 -O ea_inode >/dev/null 2>&1 -_scratch_mount +_scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support ea_inode feature on $FSTYP"Needs to be in a
_requirescheck?
Quoted 9 lines
Quoted 2 lines
There's only one test currently testing
ea_inodeat the moment, but sure, I can make it into a_requirescheck.I note there's a
_require_ext4_mkfs_featurecheck above. Perhaps just turn that into a_require_ext4_featurethat checks both mkfs and whether the kernel supports the functionality? That's typically what we've done in the past - one_requirerule to check all aspects of support needed to use the feature...
At the time when I introduced _require_scratch_overlay_feature Eryu requested that I make it generic , so please hook _require_scratch_ext4_feature to the generic helper.
Btw there is a cleanup patch factoring out _require_scratch_overlay_feature helper which has not been merged yet
Quoted 26 lines · Amir Goldstein
Quoted 25 lines · Dave Chinner
Quoted 23 lines · Theodore Ts'o
Quoted 13 lines · Dave Chinner
Quoted 12 lines · Theodore Ts'o
Signed-off-by Theodore Ts'o <[email protected]>--- tests/ext4/026 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/ext4/026 +0
-0@@ -53,7 +53,8 @@ _require_attrs _require_ext4_mkfs_feature ea_inodeQuoted 6 lines
tests/ext4/026 _require_attrs · line 57
Quoted 4 lines
tests/ext4/026 +2
-1_scratch_mkfs_ext4 -O ea_inode >/dev/null 2>&1 -_scratch_mount +_scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support ea_inode feature on $FSTYP"Needs to be in a
_requirescheck?There's only one test currently testing
ea_inodeat the moment, but sure, I can make it into a_requirescheck.
Quoted 6 lines
Quoted 6 lines
I note there's a
_require_ext4_mkfs_featurecheck above. Perhaps just turn that into a_require_ext4_featurethat checks both mkfs and whether the kernel supports the functionality? That's typically what we've done in the past - one_requirerule to check all aspects of support needed to use the feature...
Agreed, I think we can make _require_ext4_bigalloc() more generic, turn it into _require_scratch_ext4_feature(), and take use of _require_ext4_mkfs_feature() in the new helper to do the userspace check. And use the new helper in ext4/003 ext4/02[56] and ext4/306.
Quoted 5 lines
At the time when I introduced
_require_scratch_overlay_featureEryu requested that I make it generic , so please hook_require_scratch_ext4_featureto the generic helper.
BTW, the generic helper is _require_scratch_feature().
Thanks,
Eryu
Quoted 6 lines
Btw there is a cleanup patch factoring out
_require_scratch_overlay_featurehelper which has not been merged yet --
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