From b3e769b2aa8a41a0d67e6f4c2e821bdfd722d004 Mon Sep 17 00:00:00 2001 From: Mandy Kirkconnell Date: Mon, 5 Jan 2004 17:08:20 +0000 Subject: [PATCH] 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(). --- common.dump | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common.dump b/common.dump index d90b6eec..c0d4055e 100644 --- a/common.dump +++ b/common.dump @@ -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. -- 2.30.2