]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
make t_immutable and 079 filesystem-agnostic
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 1 Aug 2011 10:31:20 +0000 (12:31 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 3 Aug 2011 12:00:15 +0000 (14:00 +0200)
commitde164fbfb3e39b0fa22b7150960b921efa417fed
tree08b40195340b44f7439bd24c92796417fe320ffb
parentb2b36d0a4efd68f68add77a03feb654d5f10273a
make t_immutable and 079 filesystem-agnostic

Changed the test 079 to be generic for all filesystems and to be executed
for all filesystems.  In src/t_immutable.c which is compiled for Linux
only, replace the old style XFS and ext2 specific code for setting the
append-only and immutable flags by generic code that makes use of the
ioctl(FS_IOC_SETFLAGS) and ioctl(FS_IOC_GETFLAGS) and remove the check for
the specific filesystem type.  FS_IOC_GETFLAGS/FS_IOC_SETFLAGS is always
used and placed in an '#ifdef FS_IOC_SETFLAGS' block in order to never fail
compilation.  Without support for FS_IOC_SETFLAGS, the test completes
with _notrun.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
079
src/t_immutable.c