Target initialization has two responsibilities: creating the target partition and instantiating the target. This patch enables to create a factory partition (e.g., do not trigger recovery on the given target). This is useful for target development and for being able to restore the device state at any moment in time without requiring a full-device erase.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -85,6 +85,10 @@ struct nvm_ioctl_create_conf { · 84 unmodified lines | |||
| 85 | }; | 85 | }; |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | enum { | ||
| 89 | NVM_TARGET_FACTORY = 1 << 0, /* Init target in factory mode */ | ||
| 90 | }; | ||
| 91 | |||
| 88 | struct nvm_ioctl_create { | 92 | struct nvm_ioctl_create { |
| 89 | char dev[DISK_NAME_LEN]; /* open-channel SSD device */ | 93 | char dev[DISK_NAME_LEN]; /* open-channel SSD device */ |
| 90 | char tgttype[NVM_TTYPE_NAME_MAX]; /* target type name */ | 94 | char tgttype[NVM_TTYPE_NAME_MAX]; /* target type name */ |