For NetOrk/netork#3104: a file server's shares become endpoints of its services, and a host that mounts a share depends on it.
PosixSharesMixin (get_shares): an ordinary Linux server's NFS exports (/var/lib/nfs/etab, one share per export path, one access rule per client) and Samba shares (testparm -s; read-only unless read only = No, Samba's default). Each share names the service that serves it (nfs-server, smbd, smb on Red Hat); a share whose server is not installed is left out. No root needed.
NASShareDict: optional service, export (what a client names), access (ShareAccessDict) and guest.
NetworkMountsMixin (get_network_mounts): the NFS exports and SMB shares a host has mounted, from /proc/self/mounts, with the address the kernel connected to (addr=).
The kernel's NFS server: get_services reports nfs-server running while its unit is active (it stays active (exited) with no process while nfsd serves); get_listening_sockets names it as the unit of the sockets /proc/fs/nfsd/portlist lists.
Checked against a real OpenMediaVault 8.8 host: 4 exports, 11 Samba shares, nfs-server running, port 2049 named. Version 4.58.0; tag v4.58.0 after the merge.
For NetOrk/netork#3104: a file server's shares become endpoints of its services, and a host that mounts a share depends on it.
- **`PosixSharesMixin`** (`get_shares`): an ordinary Linux server's NFS exports (`/var/lib/nfs/etab`, one share per export path, one access rule per client) and Samba shares (`testparm -s`; read-only unless `read only = No`, Samba's default). Each share names the service that serves it (`nfs-server`, `smbd`, `smb` on Red Hat); a share whose server is not installed is left out. No root needed.
- **`NASShareDict`**: optional `service`, `export` (what a client names), `access` (`ShareAccessDict`) and `guest`.
- **`NetworkMountsMixin`** (`get_network_mounts`): the NFS exports and SMB shares a host has mounted, from `/proc/self/mounts`, with the address the kernel connected to (`addr=`).
- **The kernel's NFS server**: `get_services` reports `nfs-server` running while its unit is active (it stays `active (exited)` with no process while nfsd serves); `get_listening_sockets` names it as the unit of the sockets `/proc/fs/nfsd/portlist` lists.
Checked against a real OpenMediaVault 8.8 host: 4 exports, 11 Samba shares, `nfs-server` running, port 2049 named. Version 4.58.0; tag `v4.58.0` after the merge.
- PosixSharesMixin (get_shares): an ordinary Linux server's NFS exports from the
kernel's export table and its Samba shares from testparm -s, each naming the
service that serves it.
- NASShareDict: optional service, export, access (ShareAccessDict) and guest.
- NetworkMountsMixin (get_network_mounts): the NFS exports and SMB shares a host
has mounted, from /proc/self/mounts, with the address the kernel connected to.
- get_services reports nfs-server running while its unit is active
(KERNEL_SERVED_UNITS); get_listening_sockets names it as the unit of the
sockets /proc/fs/nfsd/portlist lists.
The standard's ratchet: models.py may not grow, and a new function stays within
complexity 10. NASShareDict and ShareAccessDict move to share_models; models
re-exports both, so every import keeps working.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For NetOrk/netork#3104: a file server's shares become endpoints of its services, and a host that mounts a share depends on it.
PosixSharesMixin(get_shares): an ordinary Linux server's NFS exports (/var/lib/nfs/etab, one share per export path, one access rule per client) and Samba shares (testparm -s; read-only unlessread only = No, Samba's default). Each share names the service that serves it (nfs-server,smbd,smbon Red Hat); a share whose server is not installed is left out. No root needed.NASShareDict: optionalservice,export(what a client names),access(ShareAccessDict) andguest.NetworkMountsMixin(get_network_mounts): the NFS exports and SMB shares a host has mounted, from/proc/self/mounts, with the address the kernel connected to (addr=).get_servicesreportsnfs-serverrunning while its unit is active (it staysactive (exited)with no process while nfsd serves);get_listening_socketsnames it as the unit of the sockets/proc/fs/nfsd/portlistlists.Checked against a real OpenMediaVault 8.8 host: 4 exports, 11 Samba shares,
nfs-serverrunning, port 2049 named. Version 4.58.0; tagv4.58.0after the merge.