mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
lightnvm: set target over-provision on create ioctl
Allow to set the over-provision percentage on target creation. In case that the value is not provided, fall back to the default value set by the target. In pblk, set the default OP to 11% of the total size of the device Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
a7689938ef
commit
e53927393b
5 changed files with 104 additions and 24 deletions
|
@ -75,14 +75,23 @@ struct nvm_ioctl_create_simple {
|
|||
__u32 lun_end;
|
||||
};
|
||||
|
||||
struct nvm_ioctl_create_extended {
|
||||
__u16 lun_begin;
|
||||
__u16 lun_end;
|
||||
__u16 op;
|
||||
__u16 rsv;
|
||||
};
|
||||
|
||||
enum {
|
||||
NVM_CONFIG_TYPE_SIMPLE = 0,
|
||||
NVM_CONFIG_TYPE_EXTENDED = 1,
|
||||
};
|
||||
|
||||
struct nvm_ioctl_create_conf {
|
||||
__u32 type;
|
||||
union {
|
||||
struct nvm_ioctl_create_simple s;
|
||||
struct nvm_ioctl_create_extended e;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue