Files
Christian Manivong 3a406b76e8 fix: read every share from OMV's own database, with its service, 0.4.0 (NetOrk/netork#3104)
get_shares() found no share at all: it asked for data models OMV does not have
(conf.service.nfs.shares and its siblings), without root although config.xml is
root's, without the full path although /usr/sbin is not on a login user's PATH,
and stored every failure as a NAS without shares. Samba shares were dropped for
want of a name of their own, and several NFS clients of one folder overwrote
each other.

Now every model is read through sudo in one round trip; a share takes its shared
folder's name; NFS is one share per folder with one access rule per client; each
share names its service (smbd, nfs-server, proftpd, rsync, tftpd-hpa) and what a
client names (/export/<folder> over NFS); rsync modules, the TFTP root and Samba's
homes are shares too; a read that fails raises.
2026-12-03 18:43:50 +01:00
..
2026-06-13 03:18:28 +02:00