The Samba-Bugzilla – Bug 6096
Add a fstatvfs function for libsmbclient
Last modified: 2009-02-15 14:04:20 UTC
Add a smbc_fstatvfs() function to fill a statvfs struct. Use the f_flag bitmask to provide smb specific flags.
Possible values for f_flag could be:
ST_UNIXCIFS - Server has unix cifs support
ST_CASESENS - Server supports case sensitivity
ST_DFS - The directory/file is on a DFS.
I've committed an initial implementation to the v3-3-test branch which provides only the UNIXCIFS check. I'm awaiting the build farm to tell me whether I need to protect portions of this code with #ifdef, which would yield this new capability unusable in some environments.
This has been implemented and committed to master and v3_3_test. In addition to smbc_fstatvfs(), there's also an smbc_statvfs() function. The former takes a handle returned by smbc_open(), smbc_create(), or smbc_opendir(), while the latter takes a URL to a file or folder.