feat: the host's file shares and network mounts, 0.27.0 (NetOrk/netork#3104) #94

Merged
christianmanivong merged 2 commits from feature/share-endpoints into main 2026-12-03 17:53:35 +00:00
Owner

For NetOrk/netork#3104, on napalm-device-types 4.58.0.

  • get_shares() through PosixSharesMixin: the NFS exports (kernel export table) and Samba shares (testparm -s) the host serves, each naming its service.
  • get_network_mounts() through NetworkMountsMixin: the NFS exports and SMB shares the host has mounted, from /proc/self/mounts.
  • Both on an exec channel under sh as the login user (readable to everyone), in _shares.LinuxSharesMixin, brought in with the host readings so linux.py stays at its recorded size.
  • Through 4.58.0, nfs-server reads as running while its unit is active, and the kernel's NFS sockets name it.

OpenMediaVault keeps its own get_shares (its own database). Version 0.27.0; tag v0.27.0 after the merge.

For NetOrk/netork#3104, on napalm-device-types 4.58.0. - `get_shares()` through `PosixSharesMixin`: the NFS exports (kernel export table) and Samba shares (`testparm -s`) the host serves, each naming its service. - `get_network_mounts()` through `NetworkMountsMixin`: the NFS exports and SMB shares the host has mounted, from `/proc/self/mounts`. - Both on an exec channel under `sh` as the login user (readable to everyone), in `_shares.LinuxSharesMixin`, brought in with the host readings so `linux.py` stays at its recorded size. - Through 4.58.0, `nfs-server` reads as running while its unit is active, and the kernel's NFS sockets name it. OpenMediaVault keeps its own `get_shares` (its own database). Version 0.27.0; tag `v0.27.0` after the merge.
christianmanivong added 2 commits 2026-12-03 17:51:40 +00:00
- get_shares() through napalm-device-types' PosixSharesMixin: the NFS exports and
  Samba shares the host serves, each naming its service.
- get_network_mounts() through NetworkMountsMixin: the NFS exports and SMB shares
  the host has mounted.
- Requires napalm-device-types 4.58.0, which also reports nfs-server running while
  its unit is active and names it as the unit of the kernel's NFS sockets.
refactor: the share and mount transports in their own mixin (NetOrk/netork#3104)
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 15s
driver / lowest (pull_request) Successful in 27s
driver / types (pull_request) Successful in 54s
driver / test (3.12) (pull_request) Successful in 1m0s
driver / test (3.13) (pull_request) Successful in 53s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 58s
CI / driver (pull_request) Successful in 1m41s
driver / publish (pull_request) Skipped
480107c96a
The standard's ratchet holds linux.py at its recorded size: the two exec-channel
transports move to _shares.LinuxSharesMixin, which the host readings bring in.
christianmanivong merged commit 43999267ac into main 2026-12-03 17:53:35 +00:00
christianmanivong deleted branch feature/share-endpoints 2026-12-03 17:53:35 +00:00
Sign in to join this conversation.