lsm_nfs_e...t_root_get(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– lsm_nfs_export_root_get(3) πŸ’–

okay bestie, welcome to the Libstoragemgmt C API Manual ✨ this is the page for lsm_nfs_export_root_get, and yes, she's a whole vibe. let's get into it 🫢


✨ NAME ✨

lsm_nfs_export_root_get β€” grabs the host list that has root access on the nfs_export πŸ‘‘


🌸 SYNOPSIS 🌸

lsm_string_list  * lsm_nfs_export_root_get (lsm_nfs_export *exp);

πŸŽ€ ARGUMENTS πŸŽ€

  • exp β€” the NFS export you want the host list for. that's it, that's the whole job πŸ’…

πŸ¦‹ VERSION πŸ¦‹

1.0 β€” yeah she's been here since the beginning, an icon fr fr 🌈


⭐ DESCRIPTION ⭐

So like, you hand her an lsm_nfs_export, and she hands you back the host list that's got root access for that export. that's the entire plot. no cap πŸ”₯


πŸ’€ NOTE πŸ’€

okay listen up, this part matters, don't skip it πŸ™ˆ

The address that gets returned is valid until lsm_nfs_export gets freed. if you need it to live longer than that, copy the return value β€” do not just hold onto the pointer and hope for the best, because that is not the move.
Also: do not free the returned lsm_string_list. she is not yours to free. hands off 🚫

πŸ‘‘ RETURN πŸ‘‘

Returns an lsm_string_list πŸ’–

But β€” and this is the important bit β€” it returns NULL if the argument 'exp' is NULL, or if it's not a valid lsm_nfs_export pointer. so if you get nothing back, check your exp first, bestie 😭


that's the whole page!! go forth and get those root hosts, main character πŸ§šπŸ’œ

β€” with love, from the Libstoragemgmt C API Manual, version of February 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from