Modify loopback size

Modify the loopback size in the blockfile snapshotter test setup.
Set the loopback size to 16MB when the page size is greater than 4096.

Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
This commit is contained in:
James Jenkins 2023-06-09 12:14:48 -04:00
parent 3c250cb508
commit 5c480d9c88

View File

@ -36,7 +36,7 @@ func setupSnapshotter(t *testing.T) ([]Opt, error) {
loopbackSize := int64(8 << 20) // 8 MB loopbackSize := int64(8 << 20) // 8 MB
if os.Getpagesize() > 4096 { if os.Getpagesize() > 4096 {
loopbackSize = int64(650 << 20) // 650 MB loopbackSize = int64(16 << 20) // 16 MB
} }
scratch := filepath.Join(t.TempDir(), "scratch") scratch := filepath.Join(t.TempDir(), "scratch")