libnvme(2)
π NAME π
enum nvme_cmd_format_ses β Format NVM Β· Secure Erase Settings
okay bestie so this is the little enum that tells your NVMe drive how you want it to nuke your data when you Format NVM. it's from the libnvme API manual, iykyk π
β¨ SYNOPSIS β¨
enum nvme_cmd_format_ses {
NVME_FORMAT_SES_NONE ,
NVME_FORMAT_SES_USER_DATA_ERASE ,
NVME_FORMAT_SES_CRYPTO_ERASE
};
like. three whole options. that's the entire vibe check. π
πΈ Constants πΈ
NVME_FORMAT_SES_NONEβ bestie we are doing nothing here. no secure erase operation requested, at all, zero, nada. it's giving "i said i'd clean my room and then just closed the door" πNVME_FORMAT_SES_USER_DATA_ERASEβ User Data Erase: all user data shall be erased, and honestly? what's left afterwards is indeterminate β like the contents could be zero filled, one filled, etc. we literally don't know, it's a mystery, it's a surprise me situation π. BUT. plot twist π: if a User Data Erase is requested and all the affected user data is encrypted, then the controller is allowed to use a cryptographic erase to perform the requested User Data Erase. so like, encrypted girlies get the fancy erase for free, slay.NVME_FORMAT_SES_CRYPTO_ERASEβ Cryptographic Erase: all user data shall be erased cryptographically. this is accomplished by deleting the encryption key. that's it. that's the whole move. no key = no data = iconic, no cap. π₯
ngl the difference between these three is the entire plot of the enum, so don't sleep on it.NONEdoes nothing,USER_DATA_ERASEwipes and might leave indeterminate leftovers,CRYPTO_ERASEjust deletes the key and calls it a day. π
okay that's the page!! sourced from libnvme β the API Manual, enum nvme_cmd_format_ses, dated July 2026. mwah, bye bestie π«Άβ¨π¦
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· 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