diff options
author | Lee Trager <lee@trager.us> | 2023-08-18 01:11:56 -0700 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-08-19 03:36:22 +0800 |
commit | eccdeae8fc417ecb369b822a8182fd5eeab751e1 (patch) | |
tree | 804dd60025fe97593d3adc1816a0471bf463287d /common | |
parent | 697988c94e870a2e9be9b0827078e718ae20995f (diff) |
fstests: Verify dir permissions when creating a stub subvolume
btrfs supports creating nesting subvolumes however snapshots are not
recurive. When a snapshot is taken of a volume which contains a subvolume
the subvolume is replaced with a stub subvolume which has the same name and
uses inode number 2. This test validates that the stub volume copies
permissions of the original volume.
Signed-off-by: Lee Trager <lee@trager.us>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/rc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5224,6 +5224,11 @@ _soak_loop_running() { return 0 } +_require_unshare() { + unshare -f -r -m -p -U $@ true &>/dev/null || \ + _notrun "unshare: command not found, should be in util-linux" +} + init_rc ################################################################################ |