Open ptpt52 opened 2 years ago
Windows is checking disk space before writing file. but mount point is tmpfs(1MB size), not ext4(64GB). Same error will happen with samba server. Are there any other smb servers that don't have this problem?
@namjaejeon could you tell me where to report the disk size to windows client? I prefer change something here to report all directories cap disksize instead of the root dir only this may be an workaroud for this issue
could you tell me where to report the disk size to windows client?
ksmbd report disk size of root share to windows client.
I prefer change something here to report all directories cap disksize instead of the root dir only
Sorry, Impossible. If we have tens of thousands of directories in share, the cost of a directory lookup is too high whenever be called from statfs.
@namjaejeon could we provide an fake option? say, fake return an config size to windows, this could be setup by manual
fake disksize = 1TB
@ptpt52 Sorry, I can't. Because this option will cause other issues. I think that you need it for auto usb mount directory in tmpfs. right ? You need to add new share using ksmbd.addshare whenever plugging usb storage.
step to produce the issue:
smb config:
disk part sda4 size is 64GB and then I open
\\192.168.16.1\mnt
in windows 11 copy one1GB-big-file
to\\192.168.16.1\mnt\sda4\
then it displays no space enough error.