From 624aa49d4b9b832ca6309182aab006e6097c15b1 Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Mon, 3 Jun 2024 20:29:53 +0530 Subject: [PATCH] increase xfs base image size to 300Mb from xfsprogs 5.19.0, minimum size of xfs volume has to be 300MB Ref: https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/commit/?id=6e0ed3d19c54603f0f7d628ea04b550151d8a262 Signed-off-by: Akhil Mohan --- plugins/snapshots/devmapper/snapshotter_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/snapshots/devmapper/snapshotter_test.go b/plugins/snapshots/devmapper/snapshotter_test.go index fba424df2..d81bf1634 100644 --- a/plugins/snapshots/devmapper/snapshotter_test.go +++ b/plugins/snapshots/devmapper/snapshotter_test.go @@ -145,9 +145,10 @@ func TestMultipleXfsMounts(t *testing.T) { poolName := fmt.Sprintf("containerd-snapshotter-suite-pool-%d", time.Now().Nanosecond()) config := &Config{ - RootPath: t.TempDir(), - PoolName: poolName, - BaseImageSize: "16Mb", + RootPath: t.TempDir(), + PoolName: poolName, + // Size for xfs volume is kept at 300Mb because xfsprogs 5.19.0 (>=ubuntu 24.04) enforces a minimum volume size + BaseImageSize: "300Mb", FileSystemType: "xfs", } snapshotter, closer, err := createSnapshotter(ctx, t, config)