fix memfs sample: use offset in fallocate call
parent
6740b8faa5
commit
7e446be212
|
@ -857,6 +857,6 @@ func (fs *memFS) Fallocate(ctx context.Context,
|
||||||
fs.mu.Lock()
|
fs.mu.Lock()
|
||||||
defer fs.mu.Unlock()
|
defer fs.mu.Unlock()
|
||||||
inode := fs.getInodeOrDie(op.Inode)
|
inode := fs.getInodeOrDie(op.Inode)
|
||||||
inode.Fallocate(op.Mode, op.Length, op.Length)
|
inode.Fallocate(op.Mode, op.Offset, op.Length)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue