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:
parent
3c250cb508
commit
5c480d9c88
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user