mbox series

[0/2,v2] btrfs-progs: tests: fix no acl support

Message ID cover.1687419918.git.anand.jain@oracle.com (mailing list archive)
Headers show
Series btrfs-progs: tests: fix no acl support | expand

Message

Anand Jain June 22, 2023, 8:18 a.m. UTC
v2:
 Works on David's comments regarding function names.
 Also use /proc/config.gz to verify ACL support and
 merging individual test case fixes into a single patch.


Btrfs ACL support is a compiling time optional feature, instead of
failing the test cases, let them say notrun. This set fixes it.

Patch 1/2 is preparatory adds helper to check for btrfs acl support.
Patches 2/2 are actual fixes.

Thanks.

Anand Jain (2):
  btrfs-progs: tests: add helper check_kernel_support_acl
  btrfs-progs: tests: check for btrfs ACL support

 tests/common                                   | 18 ++++++++++++++++++
 tests/convert-tests/001-ext2-basic/test.sh     |  1 +
 tests/convert-tests/003-ext4-basic/test.sh     |  1 +
 .../005-delete-all-rollback/test.sh            |  1 +
 .../006-large-hole-extent/test.sh              |  1 +
 .../057-btrfstune-free-space-tree/test.sh      |  1 +
 6 files changed, 23 insertions(+)

Comments

David Sterba June 28, 2023, 9:10 p.m. UTC | #1
On Thu, Jun 22, 2023 at 04:18:10PM +0800, Anand Jain wrote:
> v2:
>  Works on David's comments regarding function names.
>  Also use /proc/config.gz to verify ACL support and
>  merging individual test case fixes into a single patch.
> 
> 
> Btrfs ACL support is a compiling time optional feature, instead of
> failing the test cases, let them say notrun. This set fixes it.
> 
> Patch 1/2 is preparatory adds helper to check for btrfs acl support.
> Patches 2/2 are actual fixes.
> 
> Thanks.
> 
> Anand Jain (2):
>   btrfs-progs: tests: add helper check_kernel_support_acl
>   btrfs-progs: tests: check for btrfs ACL support

Added to devel, thanks. I'll queue the kernel part for 6.6.