The Samba-Bugzilla – Bug 9584
SMBC_fstatvfs_ctx fails with NT_STATUS_INVALID_LEVEL
Last modified: 2013-01-22 16:32:28 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.
Created attachment 8468 [details]
Corrected patch to libsmb_stat.c using cli_dskattr as a fallback
Corrected a bug in attachment 8467 [details].