feat: file shares and network mounts, the kernel's NFS server, 4.58.0 (NetOrk/netork#3104) #147

Merged
christianmanivong merged 2 commits from feature/share-endpoints into main 2026-12-03 17:47:21 +00:00
2 Commits
Author SHA1 Message Date
christianmanivong dd1b74a010 refactor: the share shapes in share_models, Samba's parse in parts (NetOrk/netork#3104)
driver / lint (pull_request) Successful in 12s
driver / standard (pull_request) Successful in 16s
driver / lowest (pull_request) Successful in 37s
driver / types (pull_request) Successful in 55s
driver / test (3.13) (pull_request) Successful in 1m7s
driver / build (pull_request) Successful in 25s
driver / test (3.12) (pull_request) Successful in 1m16s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 1m56s
driver / publish (pull_request) Skipped
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.
2026-12-03 18:45:06 +01:00
christianmanivong 879f5fe777 feat: file shares and network mounts, the kernel's NFS server, 4.58.0 (NetOrk/netork#3104)
driver / lint (pull_request) Successful in 17s
driver / standard (pull_request) Failing after 20s
driver / lowest (pull_request) Successful in 38s
driver / types (pull_request) Successful in 58s
driver / test (3.12) (pull_request) Successful in 1m19s
driver / test (3.13) (pull_request) Successful in 1m9s
driver / build (pull_request) Successful in 31s
driver / security (pull_request) Successful in 56s
CI / driver (pull_request) Failing after 1m55s
driver / publish (pull_request) Skipped
- 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.
2026-12-03 18:43:20 +01:00