@@ -122,10 +122,18 @@ sub attach_dev {
sub make_fs {
my ( $mk_type, $mk_dev, $mk_dir ) = @_;
+
+ # BTRFS requires a larger minimum size that takes >2x longer to generate
+ if ( $mk_type eq "btrfs" ) {
+ $count = "28000";
+ }
+ else {
+ $count = "4096";
+ }
print "Create $mk_dir/fstest with dd\n";
$result =
system(
- "dd if=/dev/zero of=$mk_dir/fstest bs=4096 count=4096 2>/dev/null");
+ "dd if=/dev/zero of=$mk_dir/fstest bs=4096 count=$count 2>/dev/null");
if ( $result != 0 ) {
print "dd failed to create $mk_dir/fstest\n";
}
@@ -72,6 +72,12 @@ BEGIN {
$test_count = 55;
$quota_checks = 0;
}
+
+ # BTRFS uses internal quotas requiring no security hooks
+ elsif ( $fs_type eq "btrfs" ) {
+ $test_count = 55;
+ $quota_checks = 0;
+ }
else {
$test_count = 69;
}
@@ -75,6 +75,12 @@ BEGIN {
$test_count = 54;
$quota_checks = 0;
}
+
+ # BTRFS uses internal quotas requiring no security hooks
+ elsif ( $fs_type eq "btrfs" ) {
+ $test_count = 54;
+ $quota_checks = 0;
+ }
else {
$test_count = 68;
}
This allows btrfs filesystems to be created to support the filesystem mount(2) type calls and the fs_filesystem fsmount(2) type calls. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com> --- tests/filesystem/Filesystem.pm | 10 +++++++++- tests/filesystem/test | 6 ++++++ tests/fs_filesystem/test | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-)