sahlberg / libsmb2

SMB2/3 userspace client
Other
322 stars 137 forks source link

Api support for SMB_QUERY_FS_SIZE_INFO? #350

Closed memecode closed 3 months ago

memecode commented 3 months ago

I was looking into the possibility of supporting a call like statfs in my fuse wrapper that returns information about the filesystem as a whole. Free space etc. I think the libsmb2 function smb2_decode_file_fs_size_info handles the parsing of that into a structure. But that data is not externally visible right? I don't see a way of getting it via the api... maybe I'm wrong.

So maybe we could have a smb2_stat_fs_async(...) that returns the data in smb2_file_fs_size_info?

sahlberg commented 3 months ago

smb2_statvfs[_async] should return this.

memecode commented 3 months ago

I swear I looked and should've found that. My apologies.