lsm_nfs_e..._only_get(3)

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

πŸ’– 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