lightnvm: allow to init targets on factory mode
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:45 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commit9ac09e432ec807786af11e0e2cf5db7b569a03a3
treec180773ceb2e5e1b3ca1edd06a9cc84c41525f3d
parent75603272c60964440ce059347596f1d35831ec2e
lightnvm: allow to init targets on factory mode

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.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
drivers/lightnvm/rrpc.c
include/linux/lightnvm.h
include/uapi/linux/lightnvm.h