summaryrefslogtreecommitdiff
path: root/pkg/btrfs/io1_device.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-06 10:20:01 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-06 10:20:01 -0600
commit28f09b784b5741f044b755dc7033a82075d2d98c (patch)
treedb80cd6bfda920ec700fd20aee112eedf6e9dd7a /pkg/btrfs/io1_device.go
parent20c21bf5ebc085f6f318e9199a1fee5f44c6ea61 (diff)
write support
Diffstat (limited to 'pkg/btrfs/io1_device.go')
-rw-r--r--pkg/btrfs/io1_device.go4
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