[patch][smb3] Fix two fields in statfs output

Steve French smfrench at gmail.com
Fri Jun 22 09:18:09 UTC 2018


Fix "ID" and "Namelen" fields (which were incorrectly set to 0 and
4096 before).  Fixed output is below:

foot at smf-Thinkpad-P51:~/cifs-2.6/fs# stat -f /mnt1
  File: "/mnt1"
    ID: d50e5aa000000000 Namelen: 255     Type: smb2
Block size: 1024       Fundamental block size: 1024
Blocks: Total: 234804176  Free: 28232584   Available: 28232584

See attached patch.

Would be nice if Samba filled in Volume ID field (and also corrected
the block size which in this case should be 4K)


-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb3-fill-in-statfs-fsid-and-correct-namelen.patch
Type: text/x-patch
Size: 4158 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180622/365731d4/0001-smb3-fill-in-statfs-fsid-and-correct-namelen.bin>


More information about the samba-technical mailing list