ksmbd-tools icon indicating copy to clipboard operation
ksmbd-tools copied to clipboard

Symlink in share path hinders total and free disk space reporting to Windows [updated]

Open romanrm opened this issue 1 year ago • 9 comments

Hello,

In Debian with ksmbd-tools 3.4.5-1~bpo11+1 kernel 6.1.0-3-armmp-lpae

Mapping a network drive in Windows and opening the drive properties, the total and available disk space are both shown as 0 bytes: https://romanrm.net/2023-02-21T221301Z-ksmbd.png

Meanwhile "ksmbd.mountd -n" prints on the console:

[ksmbd-worker/22585]: ERROR: Unsupported share info level (write): 2 [ksmbd-worker/22585]: ERROR: Unsupported share info level (read): 2

Lacking support for reporting free disk space really limits the usability of ksmbd. For instance such a share is not suitable as a destination for Windows built-in backup. And I cannot even verify if there is a performance improvement compared to Samba, because CrystalDiskMark refuses to operate on the ksmbd share, citing not enough free disk space. So I hope you could consider adding this feature.

Thanks!

romanrm avatar Feb 21 '23 22:02 romanrm