mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Add support to properly dump and restore the new inode flags:
immutable, append, sync, noatime and nodump. Add all inode flags, new and old, to the list defined in _mk_fillconfig_ea() of cmd/xfstests/common.dump. Test 063 can be used to verify the proper backup and restore of these flags. Also update man pages to 1) remove reference to miniroot (IRIX-only), 2) document the new XFS_XFLAG_NODUMP inode flag as the preferred method to exclude files, and 3) better describe how the media inventory files can be used. The code for the inode flags was contributed by Ethan Benson, with copyright assignment obtained by Nathan Scott. Modify routine _mk_fillconfig_ea() to test each xflag, new and old. This routine gets called by test 063 as it dumps and restores the list of xflags and extended attributes defined in _mk_fillconfig_ea().
This commit is contained in:
@@ -410,6 +410,14 @@ biggg 102400 $nobody $nobody 777 attr2 some_text2 root
|
||||
sub/smalll 10 $nobody $nobody 777 attr3 some_text3 user
|
||||
sub/biggg 102400 $nobody $nobody 777 attr4 some_text4 root
|
||||
dir d $nobody $nobody 777 attr5 dir_text user
|
||||
xflag_realtime 10 $nobody $nobody 777 XFS_XFLAG_REALTIME some_text5 root
|
||||
xflag_prealloc 10 $nobody $nobody 777 XFS_XFLAG_PREALLOC some_text6 root
|
||||
xflag_immutable 10 $nobody $nobody 777 XFS_XFLAG_IMMUTABLE some_text7 root
|
||||
xflag_append 10 $nobody $nobody 777 XFS_XFLAG_APPEND some_text8 root
|
||||
xflag_sync 10 $nobody $nobody 777 XFS_XFLAG_SYNC some_text9 root
|
||||
xflag_noatime 10 $nobody $nobody 777 XFS_XFLAG_NOATIME some_text10 root
|
||||
xflag_nodump 10 $nobody $nobody 777 XFS_XFLAG_NODUMP some_text11 root
|
||||
xflag_hasattr 10 $nobody $nobody 777 XFS_XFLAG_HASATTR some_text12 root
|
||||
#
|
||||
# Add more files so that there are more than the number
|
||||
# of streams.
|
||||
|
||||
Reference in New Issue
Block a user