Skip to content

Commit

Permalink
Modify loopback size
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 5c480d9)
Signed-off-by: Danny Canter <danny@dcantah.dev>
  • Loading branch information
Jenkins-J authored and dcantah committed Aug 18, 2023
1 parent cf9c78d commit 1c2977d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshots/blockfile/blockfile_loopsetup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func setupSnapshotter(t *testing.T) ([]Opt, error) {

loopbackSize := int64(8 << 20) // 8 MB
if os.Getpagesize() > 4096 {
loopbackSize = int64(650 << 20) // 650 MB
loopbackSize = int64(16 << 20) // 16 MB
}

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

0 comments on commit 1c2977d

Please sign in to comment.