Commit c295664e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 28cf516f
...@@ -463,12 +463,17 @@ func (bfdata *BigFileData) GetAttr(out *fuse.Attr, _ nodefs.File, fctx *fuse.Con ...@@ -463,12 +463,17 @@ func (bfdata *BigFileData) GetAttr(out *fuse.Attr, _ nodefs.File, fctx *fuse.Con
} }
// /bigfile/<bigfileX>/head/data -> Read serves read. // /bigfile/<bigfileX>/head/data -> Read serves reading bigfile data.
func (bf *BigFileData) Read(_ nodefs.File, dest []byte, off int64, _ *fuse.Context) (fuse.ReadResult, fuse.Status) { func (bfdata *BigFileData) Read(_ nodefs.File, dest []byte, off int64, fctx *fuse.Context) (fuse.ReadResult, fuse.Status) {
// XXX locking // XXX locking
panic("TODO") bf := bfdata.bigfile
//bf.zbf.blksize
// XXX better ctx = transaction.PutIntoContext(ctx, txn)
ctx, cancel := xcontext.Merge(asctx(fctx), bf.txnCtx)
defer cancel()
blksize := bf.zbf.blksize
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment