Skip to content

Commit 7ad7e16

Browse files
committed
fuse: Fake Block Count
1 parent 26823c7 commit 7ad7e16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

recuperabit/ifuse.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def getattr(self, path, fh=None):
106106
else:
107107
#print("unknown size")
108108
attrs["st_size"] = 0
109+
110+
#TODO grab actual info?
111+
attrs["st_blocks"] = (attrs["st_size"] + (attrs["st_blksize"] - 1)) // attrs["st_blksize"]
109112

110113
mac = file.get_mac()
111114
if mac is not None:

0 commit comments

Comments
 (0)