Skip to content

Commit 1c2977d

Browse files
Jenkins-Jdcantah
authored andcommitted
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]> (cherry picked from commit 5c480d9) Signed-off-by: Danny Canter <[email protected]>
1 parent cf9c78d commit 1c2977d

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)