Skip to content

Commit 6519204

Browse files
committed
test: Increase btrfs loopback device size to 128MB
With btrfs-prog 4.17 as shipped with Alpine 3.8 the btrfs tests fail with: ERROR: '/dev/loop1' is too small to make a usable filesystem ERROR: minimum size for each btrfs device is 114294784 btrfs-prog commit 997f9977c243 ("btrfs-progs: mkfs: Prevent temporary system chunk to use space in reserved 1M range") changed the code to compute the minimum size for a btrfs size and is the likely reason for this error. Increase the size of the loop back device to 128MB for the btrfs test. With this fix, the containerd tests pass on Alpine 3.8, tested in LinuxKit with kernel 4.14.53. fixes #2447 Signed-off-by: Rolf Neugebauer <[email protected]>
1 parent b416337 commit 6519204

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snapshots/btrfs/btrfs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func boltSnapshotter(t *testing.T) func(context.Context, string) (snapshots.Snap
4545

4646
return func(ctx context.Context, root string) (snapshots.Snapshotter, func() error, error) {
4747

48-
loopbackSize := int64(100 << 20) // 100 MB
48+
loopbackSize := int64(128 << 20) // 128 MB
4949
// mkfs.btrfs creates a fs which has a blocksize equal to the system default pagesize. If that pagesize
5050
// is > 4KB, mounting the fs will fail unless we increase the size of the file used by mkfs.btrfs
5151
if os.Getpagesize() > 4096 {

0 commit comments

Comments
 (0)