thanks, done : https://github.com/cifsd-team/cifsd/issues/498
Hello,
Someone knows if there is Printing and Printer sharing support in Ksmbd ?
Thanks
waiting now for testing the next 3.6 release and validate if my issue is fixed with it...
Hi, with the current version now I can't browse the root of shares without credentials. Is there an option to force the old-default behavior?
still no 3.6 in snapshot downloads...
yeah most package maintainers do this in there spare free time, so don't expect super fast updates. Also keep in mind most do openWRT update PR either on monday or over the weekend, depending on life schedule.
in master now and already available compiled in snapshot !
3.3.7 installed and testing...
root@NSA310S:~# uname -ar
Linux NSA310S 5.4.105 #0 Sat Mar 13 22:20:02 2021 armv5tel GNU/Linux
## Network Shares
### Ksmbd: 3.3.7 Kmod: 3.3.7
no more working (not mounting share !)
dmesg :
[282016.294913] CIFS: VFS: Error connecting to socket. Aborting operation.
[282016.294927] CIFS: VFS: cifs_mount failed w/return code = -2
[282022.220160] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1004: inode #917738: lblock 0: comm sudo: error -5 reading directory block
[282022.229333] EXT4-fs warning (device sda1): htree_dirblock_to_tree:1004: inode #917738: lblock 0: comm sudo: error -5 reading directory block
gerald@P3530$ sudo mount -t cifs -o guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 //nsa310s.lpm.nddc.gk2.net/NSA310S /mnt/test/ -v
mount.cifs kernel mount options: ip=10.4.2.117,unc=\\nsa310s.lpm.nddc.gk2.net\NSA310S,iocharset=utf8,file_mode=0777,dir_mode=0777,user=,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
My error, I forget to reinstall block-mount and kmos-fs-ntfs for my external drive...
Now all is working for me with the new 3.3.7 !
Thanks so much for the job !
Im getting the same issue, I think after 3.3.4
EDIT: reverting back to 3.3.4 works.
Here is the config I use:
config globals
option 'workgroup' 'WORKGROUP'
option 'description' 'Ksmbd on OpenWrt'
config share
option path '/mnt/sda1'
option read_only 'no'
option guest_ok 'yes'
option create_mask '0666'
option dir_mask '0777'
option name 'OpenWrt'
option force_root '1'
Same for me...
The guest cannot browse root shares.
But if you specify the share directly, you are allowed to access in guest mode.
I have create an issue :
The problem is there aren't too many commits between 3.3.4 and 3.3.5 when the issue first started but for the life of me can't figure out which commit is the issue....
May be the debug tools, missing from OpenWrt, may help ?
A new question about the buffers value !
How can I determine the best values...
I have some freeze at showing videos directly, but not with all software...
VLC (VideoLan) works fine, but FileExplorer (IOS/iPAD) do not...
How can I change the values of buffers in /etc/ksmbd/smb.conf.template to fix this issue ?
Issue open here : https://github.com/cifsd-team/cifsd/issues/510
You can ofc directly edit the values in the template, but honestly the current values are just based on what samba4 uses or are just guesses. The none openWRT native version has much larger buffers and the main reason to confine those buffers, was the need for predictable memory handling. The other reasoning was that if samba4 uses smaller buffers for the same task, that this should also be enough for ksmbd.
So far i'm not aware of any posts that did tests regarding those values. So i guess you are on your own and need to try&error the values. I would start by doubling each buffer per testrun and see at what values you notice a clear and repeatable difference.
If you found some issues that can be solved by simply changing those values just report them here and we can adapt the template.
The best results I obtain are with :
[global]
netbios name = |NAME|
server string = |DESCRIPTION|
workgroup = |WORKGROUP|
interfaces = |INTERFACES|
bind interfaces only = yes
ipc timeout = 20
deadtime = 15
map to guest = Bad User
# smb2 max read = 64K
# smb2 max write = 64K
# smb2 max trans = 64K
# cache read buffers = no
# cache trans buffers = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[IPC$]
guest ok = yes
I get no more freeze with it...
I get also less freeze with commenting the buffers options !
Hi, I cannot connect to server from any client.
It seems I’m having the same problem, ksmbd seems to be listening only on ipv6, as shown on netstat -tnl
Any ideas on how to fix it?
I’m running ksmbd 3.3.5
Now this issue became even worse. With current Ksmbd: 3.3.9 Kmod: 3.3.8 on OpenWrt 21.02 I cannot browse the root of shares nor any share without password from a configured user. Browsing as guest simply doesn't work. Checked in two diferent devices.
Samba4 works as expected.
Just did some quick testing and read seems to be half the speed (50MB/s) of writing (90MB/s) on my R7800. Any tweaks to speed up the read speeds?