lsm_nfs_e..._only_get(3)
π NAME π
lsm_nfs_export_read_only_get β grabs the host list that's marked read only off of the nfs_export, bestie β¨
(also hi, you're in the Libstoragemgmt C API Manual, welcome to the function that does exactly one thing and does it cute π)
π¦ SYNOPSIS π¦
lsm_string_list * lsm_nfs_export_read_only_get (lsm_nfs_export *exp);
πΈ ARGUMENTS πΈ
expβ the NFS export you want the host list for, like, the actual export object, not a copy, not a vibe, the pointer itself π«Ά
β VERSION β
1.0
π DESCRIPTION π
Okay so here's the tea: this one retrieves the host list with read only for the lsm_nfs_export. That's it. That's the whole job. It hands you back the read-only host list that belongs to that export, no cap π
π NOTE π
bestie listen carefully because this is the part that bites people π
The address you get back is valid until lsm_nfs_export gets freed. So if you need it to stick around longer than that, copy the return value. Do not free the returned lsm_string_list β it is not yours, it never was yours, hands off π
π RETURN π
You get an lsm_string_list. That's the good path.
It returns NULL if the argument 'exp' is NULL, or if it's not a valid lsm_nfs_export pointer. So, y'know, vibe check your pointers first π§
signing off fr fr β this was the Libstoragemgmt C API Manual, page lsm_nfs_export_read_only_get (shoutout to lsm_nfs_e..._only_get(3) for the truncated nickname π), version 1.0, dated February 2026. slay, go get that host list, mwah πππ
π¦ 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