btrfs: test if the capability is kept on incremental send
authorMarcos Paulo de Souza <mpdesouza@suse.com>
Mon, 1 Jun 2020 19:48:45 +0000 (16:48 -0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 21 Jun 2020 14:21:10 +0000 (22:21 +0800)
commita1c25b75b456880f64ab30ced0892f7603e4bb3c
tree937f323260f8c7736b08379aece6876255633cc6
parentd1d55692f64a6b7a5b4452b8207a544f30fcf6a7
btrfs: test if the capability is kept on incremental send

This test exercises full send and incremental send operations for cases
where files have capabilities, ensuring the capabilities aren't lost in
the process.

There was a problem with kernel <=5.7 that was making capabilities
to be lost after a combination of full + incremental send. This
behavior was fixed by commit 89efda52e6b6 ("btrfs: send: emit file
capabilities after chown").

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/214 [new file with mode: 0755]
tests/btrfs/214.out [new file with mode: 0644]
tests/btrfs/group