smbc_statvfs over SMB2/SMB3 connection doesn't return any values. The values are all set to 0. To reproduce you can use examples/libsmbclient/teststatvfs.c, which gets built as: ./bin/teststatvfs It works just fine with smbclient!
Ah, this is a function that has a missing SMB2-escape path. In other words it's still SMB1 only. Let me look at what needs adding here.
The smbclient "volume" command is also missing a call out to SMB2. I'll log a separate bug for that.
Created attachment 13780 [details] git-am fix for master. Tested using bin/teststatvfs.
Created attachment 13781 [details] Updated git-am fix for master. Corrected the comments that were in the wrong place in the previous patch. This is the version I've also sent to samba-technical for review.
Created attachment 13784 [details] git-am fix cherry-pick from master for 4.7.next, 4.6.next
Karolin, please add the patch to the relevant branches. Thanks!
(In reply to Andreas Schneider from comment #6) Pushed to autobuild-v4-{7,6}-test.
(In reply to Karolin Seeger from comment #7) Pushed to both branches. Closing out bug report. Thanks!