lsm_nfs_export_fs(3)

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

πŸ’– 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 of lsm_string_list. List of hosts that have root access. πŸ‘‘ main character hosts only.
  • rw_list β€” Pointer of lsm_string_list. List of hosts that have read/write access. they can touch, they can change things. ✨
  • ro_list β€” Pointer of lsm_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 of lsm_nfs_export for newly created NFS export. Returned value must be freed with lsm_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 be LSM_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 is NULL or not a valid lsm_connect pointer 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