lsm_nfs_auth_types(3)

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

✨ lsm_nfs_auth_types ✨

okay bestie, welcome to the Libstoragemgmt C API Manual πŸ’– this one's called lsm_nfs_auth_types, it lives in section 3 (yes, the "my code is being weird" section 🫢), and it's here to spill the tea on which NFS client authentication types your array is willing to support. short page, but it's giving exactly what it needs to give. no filler, all facts. πŸ’…


🌸 NAME 🌸

lsm_nfs_auth_types β€” gets the supported NFS client authentication types. that's it, that's the whole job, and she does it flawlessly. periodt. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int lsm_nfs_auth_types (lsm_connect *conn, lsm_string_list **types,
       lsm_flag flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • conn β€” a valid connection. like, an actual real live one. not a stale pointer, not a vibe, a connection. 🌈
  • types β€” pointer to an lsm_string_list. this is where the list of NFS client authentication types lands. heads up though: the returned value must be freed with a call to lsm_string_list_free. do not ghost it, do not forget it, free it bestie. 😭
  • flags β€” reserved for future use, so it must be LSM_CLIENT_FLAG_RSVD. no freestyling here, no custom values, just that one. πŸ™ˆ

⭐ VERSION ⭐

1.0 β€” a classic, an icon, a legend. πŸ’œ


πŸ’« DESCRIPTION πŸ’«

returns the types of NFS client authentication that the array supports. so if you've ever been like "hmm what auth can this thing even do", this function is literally the answer. it hands you back a whole list and you go read it. slay. ✨


πŸ”₯ CAPABILITY πŸ”₯

LSM_CAP_EXPORT_AUTH

that's the capability gate for this one β€” iykyk. 🧚


πŸ’€ RETURN πŸ’€

error code, as enumerated by lsm_error_number. so like, the numbers in that enum. the possibilities are:

  • LSM_ERR_OK β€” on success. we love to see it. πŸŽ‰
  • LSM_ERR_NO_SUPPORT β€” not supported. it's not a you problem, the array just can't do it. πŸ’”
fr fr: check that return value. LSM_ERR_OK means you got your list, anything else means you didn't, and there is no in-between. πŸ‘‘

that's the whole page, bestie!! short, sweet, and fully functional. πŸ¦‹

and a lil sign-off from the Libstoragemgmt C API Manual β€” this page is dated February 2026, ships with version 1.0, and yes, lsm_nfs_auth_types really does appear at the bottom of every page like a little signature. iconic behaviour honestly. mwah. πŸ’…πŸŽ€πŸ’–

πŸ“¦ where this page comes from