Bug 9584 - SMBC_fstatvfs_ctx fails with NT_STATUS_INVALID_LEVEL
Summary: SMBC_fstatvfs_ctx fails with NT_STATUS_INVALID_LEVEL
Status: NEW
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 4.0.1
Hardware: Sparc Solaris
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-22 16:05 UTC by rv1971
Modified: 2013-01-22 16:32 UTC (History)
0 users

See Also:


Attachments
Patch to libsmb_stat.c using cli_dskattr as a fallback (710 bytes, patch)
2013-01-22 16:05 UTC, rv1971
no flags Details
Corrected patch to libsmb_stat.c using cli_dskattr as a fallback (706 bytes, patch)
2013-01-22 16:31 UTC, rv1971
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rv1971 2013-01-22 16:05:45 UTC
Created attachment 8467 [details]
Patch to libsmb_stat.c using cli_dskattr as a fallback

In my company we have a windows xp professional 5.1 network. When calling SMBC_fstatvfs_ctx against any share, the first if-branch is executed, and cli_get_fs_full_size_info returns NT_STATUS_INVALID_LEVEL. I have very little knowledge about windows so I can't tell whether this is a bug or a feature. It might depend on the specific way windows is set up.

Since cli_dskattr works and provides sufficient information for my needs, I patched libsmb_stat.c such that cli_dskattr is used as a fallback when cli_get_fs_full_size_info returns NT_STATUS_INVALID_LEVEL. See attached patch.
Comment 1 rv1971 2013-01-22 16:31:51 UTC
Created attachment 8468 [details]
Corrected patch to libsmb_stat.c using cli_dskattr as a fallback

Corrected a bug in attachment 8467 [details].