Commit aba9907d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 374d89ad
......@@ -470,7 +470,7 @@ func (bfdata *BigFileData) GetAttr(out *fuse.Attr, _ nodefs.File, fctx *fuse.Con
// XXX locking
out.Mode = fuse.S_IFREG | 0444
out.Size = 0 // FIXME
out.Size = 111 // FIXME -> zbf.Size() (= zbf.blktab.MaxKey() * zbf.blksize)
// .Blocks
// FIXME lastChange should cover all bigfile data, not only ZBigFile itself
......@@ -602,7 +602,7 @@ func (bfdata *BigFileData) readBlk(ctx context.Context, blk int64, dest []byte)
// pagecache control is supported by kernel). We can correctly live on
// with the error, but data access will be likely very slow. Tell user
// about the problem.
log.Errorf("BUG: bigfile %s: blk %d: -> pagecache: %s (ignoring, reading from bigfile will be very slow)", zbf.POid(), blk, st)
log.Errorf("BUG: bigfile %s: blk %d: -> pagecache: %s (ignoring, but reading from bigfile will be very slow)", zbf.POid(), blk, st)
}()
return nil
......
......@@ -172,7 +172,7 @@ def test_bigfile_empty():
# XXX force sync of wcfs - how?
fsize = 10*blksize + len(s) # trailing \0 not counted XXX ok?
fsize = 10*blksize + len(s) # trailing \0 not counted XXX ok? -> XXX not ok
"""
st = os.stat(fpath + "/head/data")
......
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