Bug 6096 - Add a fstatvfs function for libsmbclient
Summary: Add a fstatvfs function for libsmbclient
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 enhancement
Target Milestone: ---
Assignee: Derrell Lipman
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 08:42 UTC by Andreas Schneider
Modified: 2009-02-15 14:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2009-02-09 08:42:19 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.
Comment 1 Derrell Lipman 2009-02-09 11:47:55 UTC
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.

Derrell
Comment 2 Derrell Lipman 2009-02-15 14:04:20 UTC
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.

Derrell