btrfs-progs/tests/mkfs-tests
Qu Wenruo 83ae2d58c9 btrfs-progs: tests: make sure rootdir inode gets its attributes copied
The new test case would:

- Prepare two loopback devices
  One is for storing the source directory (on a btrfs).
  This is to ensure we can set xattr for the directory, as filesystems
  like tmpfs (mostly utilized by mktemp) is not supporting xattr.

  The other one is the real target fs where we call
  "mkfs.btrfs --rootdir" on.

- Create the source directory with the following contents:
  * rootdir inode attributs:
    # mode (750)
    # uid (1000)
    # gid (1000)
    # xattr (user.rootdir)
  * one regular file, with attributes:
    # xattr (user.foorbar)

- Execute "mkfs.btrfs --rootdir" and mount the new fs

- Verify the above attributes
  The target fs should have the same attributes, especially for the
  rootdir inode.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-10-21 15:51:07 +02:00
..
001-basic-profiles btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
002-no-force-mixed-on-small-volume btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
003-mixed-with-wrong-nodesize btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
004-rootdir-keeps-size btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
005-long-device-name-for-ssd btrfs-progs: tests: mkfs/005: use udevadm settle to avoid false alerts 2023-08-23 19:36:31 +02:00
006-partitioned-loopdev btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
007-mix-nodesize-sectorsize btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
008-sectorsize-nodesize-combination btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
009-special-files-for-rootdir btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
010-minimal-size btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
011-rootdir-create-file btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
012-rootdir-no-shrink btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
013-reserved-1M-for-single btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
014-rootdir-inline-extent btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
015-fstree-uuid-otime btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
016-rootdir-bad-symbolic-link btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
017-small-backing-size-thin-provision-device btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
018-multidevice-overflow btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
019-basic-checksums-mkfs btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
020-basic-checksums-mount btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
021-rfeatures-quota-rootdir btrfs-progs: tests: mkfs/021: update to use -O instead of deprecated -R 2023-05-26 18:02:27 +02:00
022-rootdir-size btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
023-free-space-tree btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
024-fst-bitmaps btrfs-progs: tests: fix description of mkfs/024-fst-bitmaps 2023-10-17 19:33:59 +02:00
025-zoned-parallel btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
026-extent-tree-to-bgt btrfs-progs: tune: rename bgt conversion options 2023-04-27 14:23:52 +02:00
027-rootdir-inode btrfs-progs: tests: make sure rootdir inode gets its attributes copied 2023-10-21 15:51:07 +02:00
028-block-group-tree btrfs-progs: tests: add basic mkfs test for block-group-tree 2023-10-17 19:33:59 +02:00
029-raid-stripe-tree btrfs-progs: tests: add basic mkfs test for raid-stripe-tree 2023-10-17 19:33:59 +02:00
030-zoned-rst btrfs-progs: tests: add basic mkfs tests for zoned + rst 2023-10-17 19:33:59 +02:00