fix memfs sample: use offset in fallocate call

geesefs-0-30-9
Michael Stapelberg 2021-06-05 23:05:07 +02:00
parent 6740b8faa5
commit 7e446be212
1 changed files with 1 additions and 1 deletions

View File

@ -857,6 +857,6 @@ func (fs *memFS) Fallocate(ctx context.Context,
fs.mu.Lock()
defer fs.mu.Unlock()
inode := fs.getInodeOrDie(op.Inode)
inode.Fallocate(op.Mode, op.Length, op.Length)
inode.Fallocate(op.Mode, op.Offset, op.Length)
return nil
}