diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-06 10:20:01 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-06 10:20:01 -0600 |
commit | 28f09b784b5741f044b755dc7033a82075d2d98c (patch) | |
tree | db80cd6bfda920ec700fd20aee112eedf6e9dd7a /pkg/btrfs/io1_device.go | |
parent | 20c21bf5ebc085f6f318e9199a1fee5f44c6ea61 (diff) |
write support
Diffstat (limited to 'pkg/btrfs/io1_device.go')
-rw-r--r-- | pkg/btrfs/io1_device.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/btrfs/io1_device.go b/pkg/btrfs/io1_device.go index 3b84fcc..978d388 100644 --- a/pkg/btrfs/io1_device.go +++ b/pkg/btrfs/io1_device.go @@ -33,6 +33,10 @@ func (dev *Device) ReadAt(dat []byte, paddr PhysicalAddr) (int, error) { return dev.File.ReadAt(dat, int64(paddr)) } +func (dev *Device) WriteAt(dat []byte, paddr PhysicalAddr) (int, error) { + return dev.File.WriteAt(dat, int64(paddr)) +} + func (dev *Device) Superblocks() ([]*util.Ref[PhysicalAddr, Superblock], error) { if dev.cacheSuperblocks != nil { return dev.cacheSuperblocks, nil |