lsm_fs_ss_create(3)
π lsm_fs_ss_create β bestie's guide to making a filesystem snapshot π
okay so this is lsm_fs_ss_create, a function from the Libstoragemgmt C API manual (section 3, the library functions section, iykyk). it does exactly one iconic thing and it does it well: it creates a file system snapshot. that's it. that's the vibe. β¨
π¦ SYNOPSIS π¦
int lsm_fs_ss_create (lsm_connect *conn, lsm_fs *fs, const char *name,
lsm_fs_ss **snapshot, char **job, lsm_flag flags);
she takes six things and returns an int, and honestly? she's serving. let's meet the cast π
π ARGUMENTS π
connβ a valid connection. no connection, no snapshot, no slay. πfsβ pointer oflsm_fsto create snapshot. this is the filesystem we're snatching a snapshot of, bestie.nameβ string. a human recognizable name, but heads up: it might be altered or ignored by certain storage system. not every storage system respects your naming choices, and that's just the reality of it. πsnapshotβ output pointer oflsm_fs_ssfor newly created snapshot. this is where the fresh new baby gets handed back to you π«Άjobβ output pointer of string. if storage system support asynchronous action on this, a job will be created and could be tracked vialsm_job_status_ss_get.NULLif storage system does not support asynchronous action on this. so if you get a job back, go track it, don't just leave it on read. π±flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. it's giving "no thoughts, just reserved". don't put anything else in there, fr fr.
πΈ VERSION πΈ
1.0 β she's been here since the beginning, a true original.
β¨ DESCRIPTION β¨
Creates a new file system snapshot. that's the whole thing. short, sweet, main character energy. π
π CAPABILITY π
LSM_CAP_FS_SNAPSHOT_CREATE
this is the capability flag you're looking for. if your storage system doesn't have it, this function is not gonna eat, sorry bestie. π₯²
π RETURN π
error code as enumerated by lsm_error_number. here's the full roster, no skips:
LSM_ERR_OKβ On success. we ate and left no crumbs. πLSM_ERR_JOB_STARTEDβ A job is started. Please check thejoboutput pointer. she's running in the background, go check on her!LSM_ERR_INVALID_ARGUMENTβ When any argument is NULL or not a valid lsm_connect pointer or invalid flags. bestie, something you handed her was not it. πLSM_ERR_NOT_FOUND_FSβ When file system not found. where is she? gone. vanished. not found. πLSM_ERR_NOT_ENOUGH_SPACEβ Pool does not have enough space. the pool said "I have nothing left to give". πLSM_ERR_POOL_NOT_READYβ Pool is not ready for volume creation. she needs a minute, give her a minute. π§LSM_ERR_NO_SUPPORTβ Not supported. this storage system simply does not do that. periodt. π«
heads up bestie: this function returns an int error code, so always check it. do not ignore the return value, do not pass go, do not collect $200. π
that's the whole page!! every flag, every pointer, every error code, all present and accounted for, no cap. π
this lil masterpiece came from the Libstoragemgmt C API Manual, and the footer vibes were giving February 2026 with lsm_fs_ss_create all over the place. bye bestie, go snapshot something ππ
π¦
π¦ 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