libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… NAME

okay so bestie, welcome to libnvme(9) β€” the API Manual, and today's main character is enum nvme_cmd_format_ses πŸŽ€ which is literally the Format NVM - Secure Erase Settings situation. yes. we're getting into erase vibes. buckle up πŸ¦‹


✨ SYNOPSIS

here's the whole thing, exactly as it lives, no cap:

enum nvme_cmd_format_ses {
    NVME_FORMAT_SES_NONE ,
    NVME_FORMAT_SES_USER_DATA_ERASE ,
    NVME_FORMAT_SES_CRYPTO_ERASE

};

that's it. that's the enum. iconic. πŸ‘‘


πŸŽ€ Constants

okay so these are the three constants and let me tell you each one has a whole personality 🌸

  • NVME_FORMAT_SES_NONE β€” No secure erase operation requested. literally nothing happening, we're just chilling πŸ’…
  • NVME_FORMAT_SES_USER_DATA_ERASE β€” User Data Erase, and the tea is: All user data shall be erased, and ngl the contents of the user data after the erase is indeterminate 😭 like, e.g. the user data may be zero filled, one filled, etc. β€” nobody knows, it's giving mystery ✨

and a little plot twist for you: if a User Data Erase is requested and all affected user data is encrypted, then the controller is allowed to use a cryptographic erase to perform the requested User Data Erase 🫢 slay, efficient.

  • NVME_FORMAT_SES_CRYPTO_ERASE β€” Cryptographic Erase: All user data shall be erased cryptographically. and the way that it's accomplished? by deleting the encryption key πŸ”₯ like, the key is gone, the data is gone, bye. no notes. πŸ’€

🐝 quick vibe check reminder: the User Data Erase one does not promise you nice clean zeros afterward β€” "indeterminate" is doing a lot of heavy lifting there, so don't come crying when the contents look weird πŸ™ˆ

so that's the whole page, bestie β€” every constant, every caveat, every last drop of erase lore πŸ’–

and before you go: this absolute gem came from enum nvme_cmd_format_ses in the libnvme(9) API Manual, dated October 2026 πŸ”₯ bookmark it, screenshot it, send it to the group chat. mwah πŸ’‹ πŸ¦‹ ⭐

πŸ“¦ where this page comes from