support Fallocate on linux

This commit is contained in:
Chris Lu committed 2017-01-08 11:01:46 -08:00
1 parent 7b6837cbc2
commit ed44f12f6d
17 files changed
+104 -33

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ func runBackup(cmd *Command, args []string) bool {
return true
}
v, err := storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl)
v, err := storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0)
if err != nil {
fmt.Printf("Error creating or reading from volume %d: %v\n", vid, err)
return true