tests: port generic/097 to Linux
authorEric Biggers <ebiggers@google.com>
Fri, 21 Jul 2017 04:22:04 +0000 (21:22 -0700)
committerEryu Guan <eguan@redhat.com>
Mon, 24 Jul 2017 04:17:42 +0000 (12:17 +0800)
commit74d977646c74a7453096af1c0e441a082d9a31ac
tree1f0f84fed4a3e69d5cd0db1348e199fc2b48d16c
parentf5413189dbd5d23c1194d7a94fe26db2df41ea90
tests: port generic/097 to Linux

This IRIX-specific test did some basic testing of extended attributes.
Port it to Linux; this mainly involved updating it to use the 'getfattr'
and 'setfattr' programs instead 'attr'.  Note that although 'attr' is
available on Linux, it's mainly for IRIX compatibility, the man page
recommends against using it on non-XFS filesystems, and it doesn't
support listing user xattrs only.  (In the last point it actually
differs from IRIX 'attr', but probably no one cares anymore.)  getfattr
also sorts its output by xattr name, so its output will be the same on
all filesystems unlike 'attr -l'.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
.gitignore
tests/generic/097
tests/generic/097.out [new file with mode: 0644]
tests/generic/097.out.udf [deleted file]
tests/generic/097.out.xfs [deleted file]
tests/generic/group