lsm_nfs_e...t_root_get(3)
π 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
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms