1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

borgfs.statfs: add comments

This commit is contained in:
Thomas Waldmann 2023-04-02 16:56:28 +02:00
parent dfef2b9092
commit 63e17d6da2
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -562,14 +562,14 @@ def pop_option(options, key, present, not_present, wanted_type, int_base=0):
@async_wrapper
def statfs(self, ctx=None):
stat_ = llfuse.StatvfsData()
stat_.f_bsize = 512
stat_.f_frsize = 512
stat_.f_blocks = 0
stat_.f_bfree = 0
stat_.f_bavail = 0
stat_.f_files = 0
stat_.f_ffree = 0
stat_.f_favail = 0
stat_.f_bsize = 512 # Filesystem block size
stat_.f_frsize = 512 # Fragment size
stat_.f_blocks = 0 # Size of fs in f_frsize units
stat_.f_bfree = 0 # Number of free blocks
stat_.f_bavail = 0 # Number of free blocks for unprivileged users
stat_.f_files = 0 # Number of inodes
stat_.f_ffree = 0 # Number of free inodes
stat_.f_favail = 0 # Number of free inodes for unprivileged users
stat_.f_namemax = 255 # == NAME_MAX (depends on archive source OS / FS)
return stat_