lsm_nfs_export_fs(3)
π lsm_nfs_export_fs β bestie edition π
okay so this is a page from the Libstoragemgmt C API Manual, and it's literally about lsm_nfs_export_fs(3). it's giving "let me set up your NFS export real quick" energy and honestly? iconic. π¦
β¨ NAME β¨
lsm_nfs_export_fs β Creates or modifies an NFS export. π
π SYNOPSIS π
int lsm_nfs_export_fs (lsm_connect *conn, const char *fs_id, const char
*export_path, lsm_string_list *root_list, lsm_string_list *rw_list,
lsm_string_list *ro_list, uint64_t anon_uid, uint64_t anon_gid, const
char *auth_type, const char *options, lsm_nfs_export **exported,
lsm_flag flags);
like yes she takes a LOT of arguments. she's high maintenance but she's worth it, no cap. π
πΈ ARGUMENTS πΈ
connβ Valid connection. gotta be a real one, fr fr.fs_idβ String. File system ID to export. the actual filesystem you're showing off.export_pathβ String. Export path. where the magic happens.root_listβ Pointer oflsm_string_list. List of hosts that have root access. π main character hosts only.rw_listβ Pointer oflsm_string_list. List of hosts that have read/write access. they can touch, they can change things. β¨ro_listβ Pointer oflsm_string_list. List of hosts that have read only access. look but don't touch bestie π«Άanon_uidβuint64_t. UID to map to anonymous.anon_gidβuint64_t. GID to map to anonymous.auth_typeβ String. NFS client authentication type.optionsβ Array specific options.exportedβ Output pointer oflsm_nfs_exportfor newly created NFS export. Returned value must be freed withlsm_nfs_export_record_free. β οΈ yes you HAVE to free it, don't leave her hanging, that's a memory leak and it's not the vibe.flagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. no improvising, okay? π
β VERSION β
1.0
π DESCRIPTION π
Creates or modifies an NFS export.
that's it. that's the whole description. she's concise, she's confident, she ate. π
π₯ CAPABILITY π₯
LSM_CAP_EXPORT_FS
π RETURN π
Error code as enumerated by lsm_error_number. so here's the rundown:
LSM_ERR_OKβ On success. slay! πLSM_ERR_INVALID_ARGUMENTβ When any argument isNULLor not a validlsm_connectpointer or invalid flags. you gave her nothing to work with πLSM_ERR_NOT_FOUND_FSβ When file system not found. she looked everywhere bestie, it's not there π
ngl, if you see anything other than LSM_ERR_OK, go check your args first. it's almost always the args. π
anyway that's the whole page, love that for us. written by the Libstoragemgmt C API Manual crew, version 1.0, dated February 2026 β mwah, tysm for the docs, periodt. πβ¨π
π¦ 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