lsm_volum...ate_range(3)
β¨ NAME β¨
lsm_volume_replicate_range β bestie, it replicates a portion of a volume to a volume. That's it, that's the whole vibe. π
Oh and btw, this lil cutie lives in the Libstoragemgmt C API Manual β you're in the right place, iykyk. π«Ά
πΈ SYNOPSIS πΈ
int lsm_volume_replicate_range (lsm_connect *conn, lsm_replication_type rep_type, lsm_volume *source, lsm_volume *dest, lsm_block_range **ranges, uint32_t num_ranges, char **job, lsm_flag flags);
π ARGUMENTS π
okay so here's the cast of characters, no skips, we're doing all of them:
connβ a valid connection. gotta have one, queen. πrep_typeβ anlsm_replication_type. the valid values are literally:LSM_VOLUME_REPLICATE_CLONEβ a point in time read writeable space efficient copy of data. also known as a read writeable snapshot. β¨LSM_VOLUME_REPLICATE_COPYβ a full bitwise copy of the data, and yes it occupies full space. no shortcuts, no diet version, the whole thing. π
sourceβ pointer of the replication sourcelsm_volume. the origin story. π±destβ pointer of the replication targetlsm_volume. plot twist: it could be the same assource. π€―rangesβ array oflsm_block_range. please please please uselsm_block_range_record_array_allocandlsm_block_range_record_allocto create it. don't freehand this one, bestie. πnum_rangesβuint32_t. the number of entries inranges. count them. πjobβ output pointer of string. if the storage system supports asynchronous action on this, a job will be created and could be tracked vialsm_job_status_get. it'sNULLif the storage system does not support asynchronous action on this. so like, sometimes you get a job, sometimes you don't, we don't make the rules. πflagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. it's giving "placeholder but make it mandatory". π§
β VERSION β
1.0
π¦ DESCRIPTION π¦
Replicates a portion of specified source volume to target volume. just a portion, not the whole thing β that's the moment, that's the main character energy. π₯
π CAPABILITY π
LSM_CAP_VOLUME_COPY_RANGE LSM_CAP_VOLUME_COPY_RANGE_CLONE
LSM_CAP_VOLUME_COPY_RANGE_COPY
π RETURN π
error code as enumerated by lsm_error_number. here's the whole lineup:
LSM_ERR_OK- on success. we ate. π
LSM_ERR_JOB_STARTED- a job is started. please check the
joboutput pointer. π
- a job is started. please check the
LSM_ERR_INVALID_ARGUMENT- when any argument is
NULLor not a validlsm_connectpointer or invalid flags or invalid replication type. basically: something's not right and we're telling you. π
- when any argument is
LSM_ERR_NOT_FOUND_VOLUME- when volume not found. it's not there. gone. π«₯
LSM_ERR_NOT_FOUND_POOL- when pool not found. also not there. π
LSM_ERR_POOL_NOT_READY- pool is not ready. give it a minute, it's getting ready. π§
LSM_ERR_NO_SUPPORT- not supported. respectfully, nope. π
no cap: these are the exact codes, so don't go inventing new ones, bestie. the manpage said what it said. π
and that's the whole page, periodt. π this was the lsm_volume_replicate_range page from the Libstoragemgmt C API Manual, dated February 2026 β mwah, take care of her, she's iconic. ππ
β¨
π¦ 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