namjaejeon/ksmbd

Lot of ksmbd: v5 version is not supported when accessing from Win 11

helloworld1 opened this issue · 5 comments

When I write files in Android Studio from Win 11, I got a lot of logs saying ksmbd: v5 version is not supported

$ dmesg
...
[68971.766914] ksmbd: v5 version is not supported
[68971.779808] ksmbd: v5 version is not supported
[68971.871544] ksmbd: v5 version is not supported
[68971.910135] ksmbd: v5 version is not supported
[68971.914629] ksmbd: v5 version is not supported
[68971.935415] ksmbd: v5 version is not supported
[68971.946726] ksmbd: v5 version is not supported
[68972.011342] ksmbd: v5 version is not supported
[68972.015847] ksmbd: v5 version is not supported
[68972.074336] ksmbd: v5 version is not supported
[68972.096809] ksmbd: v5 version is not supported
[68972.140220] ksmbd: v5 version is not supported
[68972.144728] ksmbd: v5 version is not supported
[68972.157770] ksmbd: v5 version is not supported
[68972.298883] ksmbd: v5 version is not supported
[68972.336880] ksmbd: v5 version is not supported
[68972.341372] ksmbd: v5 version is not supported
[68972.354237] ksmbd: v5 version is not supported
[68972.444295] ksmbd: v5 version is not supported
[68972.483083] ksmbd: v5 version is not supported
[68972.487582] ksmbd: v5 version is not supported
[68972.500537] ksmbd: v5 version is not supported
[68972.591867] ksmbd: v5 version is not supported
[68972.630260] ksmbd: v5 version is not supported
[68972.634761] ksmbd: v5 version is not supported
[68972.647755] ksmbd: v5 version is not supported
[68972.711020] ksmbd: v5 version is not supported
[68972.786534] ksmbd: v5 version is not supported

The server is running arch linux kernel 5.15.76 and ksmbd-tools is version 3.4.6.

$ uname -a
Linux 5.15.76-2-rpi-ARCH #1 SMP PREEMPT Wed Nov 2 06:56:04 MDT 2022 aarch64 GNU/Linux
$ pacman -Qi ksmbd-tools
Name            : ksmbd-tools
Version         : 3.4.6-2

@helloworld1 Thanks for your report, have you ever used samba before ? And then switch ksmbd ? because this error will be coming while accessing files that samba created.

Yes, I have used Samba before for creating those files. Is there a way to clear those ntacl properties?

I will downgrade this error message to debug to avoid flood message. for now, you can disable dos attribute from ksmbd.conf.(or smb.conf)

[share]
store dos attributes = no

Thanks for the quick response! Yes, verified that store dos attributes = no will workaround the issue at the expense of not supporting "hidden" attribute.

@helloworld1 FIXED. Please check this commit(897c742)