lsm_nfs_list(3)
π lsm_nfs_list β bestie edition π
okay so this is a page from the Libstoragemgmt C API Manual, and it's all about lsm_nfs_list(3) β literally the function that hands you every NFS export chillin' on your connection. let's get into it π«Ά
β¨ NAME β¨
lsm_nfs_list β gets a list of NFS exports on this connection. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
int lsm_nfs_list (lsm_connect *conn, const char *search_key, const char
*search_value, lsm_nfs_export **exports[], uint32_t *count, lsm_flag
flags);
look at her. six args. she's serving. π
π ARGUMENTS π
connβ a valid connection. gotta have one, no connection no party. πsearch_keyβ the search key, orNULLfor all of them. the valid search keys are:"id","fs_id". that's the whole menu, don't try to order off-menu. πsearch_valueβ the search value. the thing you're actually looking for. πexports[]β out pointer oflsm_nfs_exportarray. β οΈ heads up bestie, you gotta free this yourself withlsm_nfs_export_record_array_free. she does NOT clean up after herself.countβuint32_t. number of items in array. how many exports you got, mathematically. π’flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. like, don't get creative, okay? π«
π VERSION π
1.0
π DESCRIPTION π
Gets a list of NFS export on this connection. yes, "export" singular, the manpage said what it said, we're not editing her. π
so once you've got your list, the actual properties of each NFS export can be pulled out with these little guys:
lsm_nfs_export_id_getlsm_nfs_export_fs_id_getlsm_nfs_export_export_path_getlsm_nfs_export_auth_type_getlsm_nfs_export_root_getlsm_nfs_export_read_write_getlsm_nfs_export_read_only_getlsm_nfs_export_anon_gid_getlsm_nfs_export_anon_uid_getlsm_nfs_export_options_get
ten of them. a whole squad. collect them all like they're pokΓ©mon. π§
β CAPABILITY β
LSM_CAP_EXPORTS
π₯ RETURN π₯
error code as enumerated by lsm_error_number. here's the rundown:
LSM_ERR_OK- on success or searched value not found. yeah β not finding it counts as a win here, no cap. π
LSM_ERR_INVALID_ARGUMENT- when any argument is
NULLor invalid flags or invalid search key. you gave her something she can't work with. π
- when any argument is
LSM_ERR_NO_SUPPORT- not supported. she simply cannot, and will not. π ββοΈ
π¦ SEE ALSO π¦
no SEE ALSO section on this one bestie, that's the whole page. β¨
and that's the tea π β go forth, list your NFS exports, and remember to free that array, or your memory will be leaking like my group chat. π«Ά
bye bestie!! this was lsm_nfs_list(3), part of the Libstoragemgmt C API Manual, version 1.0, and the page is dated February 2026 β the footer would say lsm_nfs_list and lsm_nfs_list(3) but like, we already know her name. π
π¦ 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