lsm_volume_enable(3)
π lsm_volume_enable β bestie edition π
okay so this one lives in the Libstoragemgmt C API Manual, and it's called lsm_volume_enable(3). it's giving "wake up babe, your volume's back online" energy and honestly? we love that for you. πΈ
β¨ NAME β¨
lsm_volume_enable β Set a Volume to online π₯
like, literally. it takes a volume that's been sitting there all sad and offline and goes "not on my watch, bestie" π
π SYNOPSIS π
int lsm_volume_enable (lsm_connect *conn, lsm_volume *volume, lsm_flag
flags);
that's the whole vibe. three args, one int coming back at you. periodt. β¨
π ARGUMENTS π
connβ a Validlsm_connectpointer. your connection to the whole storage situation. it has to be valid, okay? no fake ones, no NULLs, we're not doing that today. π«Άvolumeβ The pointer oflsm_volumeto be enabled. this is the main character of the operation. the volume we're waking up. πflagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. ngl it's not doing anything yet, it's just sitting there being reserved. put the right value in and we move on. π
β VERSION β
1.0
yes queen, we're on version one point oh. π
π DESCRIPTION π
Enable the specified volume when that volume is disabled by administrator or via lsm_volume_disable.
so the lore is: somebody (an admin, or a call to lsm_volume_disable) put this volume in time-out. this function is the "you can come back to the group chat now" text. you pass the volume, it gets enabled. iconic behaviour, no cap. π₯
π§ CAPABILITY π§
LSM_CAP_VOLUME_ENABLE
that's the capability you're checking for, bestie. if the plugin doesn't have it, don't expect the enable to happen β go check that first, iykyk. π
π RETURN π
Error code as enumerated by lsm_error_number. here's the whole list, don't skip it, i know you want to:
LSM_ERR_OKβ On success. slay! everything worked, the volume is enabled, we're thriving. πLSM_ERR_INVALID_ARGUMENTβ When any argument is NULL or not a validlsm_connectpointer or invalid flags. basically you handed it something cursed. check your pointers and your flags, bestie. πLSM_ERR_NOT_FOUND_VOLUMEβ When volume not found. it's not there. nowhere. ghosted you fr fr. π»LSM_ERR_POOL_NOT_READYβ Pool is not ready. the pool is not in its ready era yet, give it a minute. πLSM_ERR_NO_SUPPORTβ Not supported. the plugin said "not my department". π
lowkey important: thatflagsarg genuinely must beLSM_CLIENT_FLAG_RSVDright now. it's reserved, not a free-for-all. don't get creative. π
πΈ SEE ALSO πΈ
no SEE ALSO section in this one, bestie β this page is a solo act and she's serving. π«Ά
and that's the whole page!! written by the Libstoragemgmt C API Manual girlies, dated February 2026, and yes the footer says lsm_volume_enable(3) twice because she's extra like that. mwah. πβ¨π
π¦ 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