generic/079,277: require chattr, not xattrs

Add a new helper, _require_chattr, which allows the test to explicitly
check to see if the file system supports a specific chattr flag, as
not all file systems support chattr +A or chattr +i, and the presence
of extended attribute support is has nothing to do with a specific
chattr flag being supported.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Hugh Dickins
2016-02-19 10:47:55 +11:00
committed by Dave Chinner
parent a8e24c8ab5
commit 6912082bc2
3 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
_supported_fs generic
_supported_os Linux
_require_scratch
_require_attrs
_require_chattr A
_scratch_mkfs > /dev/null 2>&1
_scratch_mount