Skip to content

Commit 5c480d9

Browse files
committed
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 <[email protected]>
1 parent 3c250cb commit 5c480d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snapshots/blockfile/blockfile_loopsetup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func setupSnapshotter(t *testing.T) ([]Opt, error) {
3636

3737
loopbackSize := int64(8 << 20) // 8 MB
3838
if os.Getpagesize() > 4096 {
39-
loopbackSize = int64(650 << 20) // 650 MB
39+
loopbackSize = int64(16 << 20) // 16 MB
4040
}
4141

4242
scratch := filepath.Join(t.TempDir(), "scratch")

0 commit comments

Comments
 (0)