Commit d0c4ba8c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5c41d82a
...@@ -2167,7 +2167,7 @@ func (head *Head) bigfopen(ctx context.Context, oid zodb.Oid) (_ *BigFile, err e ...@@ -2167,7 +2167,7 @@ func (head *Head) bigfopen(ctx context.Context, oid zodb.Oid) (_ *BigFile, err e
zconn := head.zconn zconn := head.zconn
defer xerr.Contextf(&err, "bigfopen %s @%s", oid, zconn.At()) defer xerr.Contextf(&err, "bigfopen %s @%s", oid, zconn.At())
// XXX better ctx = transaction.PutIntoContext(ctx, txn) // TODO better ctx = transaction.PutIntoContext(ctx, txn)
ctx, cancel := xcontext.Merge(ctx, zconn.TxnCtx) ctx, cancel := xcontext.Merge(ctx, zconn.TxnCtx)
defer cancel() defer cancel()
...@@ -2277,7 +2277,7 @@ func (f *BigFile) GetAttr(out *fuse.Attr, _ nodefs.File, fctx *fuse.Context) fus ...@@ -2277,7 +2277,7 @@ func (f *BigFile) GetAttr(out *fuse.Attr, _ nodefs.File, fctx *fuse.Context) fus
func (f *BigFile) getattr(out *fuse.Attr) { func (f *BigFile) getattr(out *fuse.Attr) {
out.Mode = fuse.S_IFREG | 0444 out.Mode = fuse.S_IFREG | 0444
out.Size = uint64(f.size) out.Size = uint64(f.size)
out.Blksize = uint32(f.blksize) // XXX 64 -> 32 out.Blksize = uint32(f.blksize) // NOTE truncating 64 -> 32
// .Blocks // .Blocks
mtime := f.rev.Time().Time mtime := f.rev.Time().Time
......
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