Cifsd - in kernel daemon

dynamically hide some share options

You can just don't add that option on render.

What happens than, do we get two "Network Shares" entries or is the later overwriting the first?

get two "Network Shares"

@lamelogin i just finished testing with 19.07 on my spare router and all worked fine, so PR are up and rdy for testing if merged.


3 Likes

Quick note: There is some luci/js code related problem/bug that prevents all the 'no' UCI options to-be written to the config. This means read only = no is not written anymore and as a result the shares are not write-able anymore.

As temp fix add option writeable = yes to your uci share config.

Very happy to see it getting merged into 19.07, thank you for your work (and jow for curating.)

2 Likes

@Andy2244

Initial tests are looking good. No issues so far, I will try to stress it a little bit with some robocopy backups.

Device: Linksys WRT32X
OS: OpenWrt 19.07-SNAPSHOT r10752-1859391e9e

Actually, looks like the "option interface" isn't being respected? Note: this machine is acting as a wired Dumb Access Point.

root@machinex:~# netstat -an | egrep 445
tcp        0      **0 0.0.0.0**:445             0.0.0.0:*               LISTEN

root@machinex:~# ifconfig br-lan
br-lan    Link encap:Ethernet  HWaddr 62:38:E0:D0:02:A0
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0

Tested the changes to the luci/js code and it works great. Can connect and write to the partition.
Interface is working now.

@Andy2244 awesome job and very fast fix. 6 hours after I mentioned it he fixed it!!!!

I usual use the master but glad it will make it to 19.07

Not a bug, see explanation here: https://github.com/cifsd-team/cifsd-tools/issues/84

Any reason luci-app-cifsd is not part of the master of openwrt GitHub anymore? -- It is still in 19.07
I noticed today when I did a git pull to ge the lasted code.

@Andy2244

I just upgraded to 19.07.0 on a Linksys WRT32X. I don't see the cifsd or the luci version of the package anymore. Did I mess something up?

root@xxx:~# opkg list | wc -l
8553
root@xxx:~# opkg list | egrep -i cifsd
samba4-client - 4.11.4-1 - installs: cifsdd smbclient smbget  The smbclient program implements a simple ftp-like client for accessing SMB shares
root@xxx:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core http://downloads.openwrt.org/releases/19.07.0/targets/mvebu/cortexa9/packages
src/gz openwrt_kmods http://downloads.openwrt.org/releases/19.07.0/targets/mvebu/cortexa9/kmods/4.14.162-1-a92a3f5c5bed2671533484c7ace9d5b5
src/gz openwrt_base http://downloads.openwrt.org/releases/19.07.0/packages/arm_cortex-a9_vfpv3/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/19.07.0/packages/arm_cortex-a9_vfpv3/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/19.07.0/packages/arm_cortex-a9_vfpv3/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/19.07.0/packages/arm_cortex-a9_vfpv3/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/19.07.0/packages/arm_cortex-a9_vfpv3/telephony


Yes, Ksmbd (Samba3/4 alternative, ex cifsd/smbd) package support thread - #8 by Andy2244