LBLK-WRITE-ZEROS(1)
π LBLK-WRITE-ZEROS(1) β the xNVMe glow-up
okay bestie, sit down, hydrate, because today we're talking about lblk-write-zeros from the xNVMe manual, section 1. it's giving "small utility, huge main character energy." β¨
πΈ NAME πΈ
lblk-write-zeros β Set a range of logical blocks to zero π«§
like literally. you point it at some blocks and it zeroes them. no notes. π
β¨ SYNOPSIS β¨
lblk write-zeros <uri> [<args>]
that's the whole vibe. one subcommand, a <uri>, and whatever <args> you feel like sprinkling on top. π
π¦ DESCRIPTION π¦
Set a range of logical blocks to zero. π
that's it, that's the plot. you give it a device and a range, and it writes zeros over those logical blocks. lowkey the cleanest thing on this whole filesystem. π
π REQUIRED π
these are not optional, bestie. the command will simply not be slaying without them. π«Ά
<uri>β Device URI. examples so you know the flavour:'/dev/nvme0n1','0000:01:00.1','10.9.8.1.8888','\.PhysicalDrive1'π--slba 0xNUMβ Start Logical Block Address. where the zeroing begins, fr fr.--nlb NUMβ Number of LBAs.
β οΈ heads up bestie, --nlb is a zero-based value. do not come for me when your range is off by one, i warned you. π
π§ OPTIONAL π§
the extras. the accessories to the outfit. none of them are mandatory but they sure do eat. π
[ --nsid 0xNUM ]β Namespace Identifier for Command Construction π[ --data-input FILE ]β Path to data input-file π[ --meta-input FILE ]β Path to meta input-file π[ --subnqn STRING ]β Subsystem NQN of the NVMe over Fabrics endpoint, e.g.'nqn.2022-06.io.xnvme:ctrlnode1'π[ --hostnqn STRING ]β The host NQN to use when connecting to NVMe over Fabrics controllers π[ --be STRING ]β xNVMe backend, e.g.'linux','spdk','fbsd','macos','posix','windows'π»[ --dev-nsid 0xNUM ]β Namespace Identifier for Device Handle π[ --admin STRING ]β xNVMe admin. command-interface, e.g.'nvme','block'π οΈ[ --mem STRING ]β xNVMe buffer/memory manager π§[ --direct NUM ]β Bypass layers π[ --sync STRING ]β xNVMe sync. command-interface, e.g.'nvme','block'π[ --help ]β Show usage / help πβοΈ (the classic, the icon, the legend)
π₯ SEE ALSO π₯
Full documentation at: https://xnvme.io/ β go read it, it's giving very thorough. π
π AUTHOR π
Written by Simon A. F. Lund <simon.lund@samsung.com> on behalf of Samsung π«‘
okay that's the whole page, you ate that. and for the sign-off: this is the xNVMe manual, dated 09 September 2024, and honestly? iconic of it. π β¨πΈ periodt.
π¦ where this page comes from
- alpine 3.24: xnvme-doc 0.7.5-r1 Β· BSD-3-Clause
- epel 9: xnvme-tools 0.7.5-3.el9 Β· BSD-3-Clause
- fedora 43: xnvme-tools 0.7.5-5.fc43 Β· BSD-3-Clause
- fedora 44: xnvme-tools 0.7.5-6.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms