mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: fsstress add FS_IOC_{SET,GET}FLAGS operations v2
Add two new operations:
- getattr: ioctl(fd, FS_IOC_GETFLAGS, &fl)
- setattr: ioctl(fd, FS_IOC_SETFLAGS, &random_flags)
Attribute mask may be passed via -M opt, by default is (~0).
By default FS_IOC_SETFLAGS has zero probability because
it may produce inodes with APPEND or IMMUTABLE flags which
are not deletable by default. Let's assumes that one who
enable it knows how to delete such inodes.
For example like follows:
find $TEST_PATH -exec chattr -i -a {} \;
rm -rf $TEST_PATH
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
dca63722ea
commit
96fb9f93ca
Vendored
+4
@@ -21,6 +21,10 @@ AC_DEFUN([AC_PACKAGE_WANT_LINUX_PRCTL_H],
|
||||
AC_SUBST(have_prctl)
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_WANT_LINUX_FS_H],
|
||||
[ AC_CHECK_HEADER([linux/fs.h])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_WANT_FALLOCATE],
|
||||
[ AC_MSG_CHECKING([for fallocate])
|
||||
AC_TRY_LINK([
|
||||
|
||||
Reference in New Issue
Block a user