]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nvmet: preserve controller serial number between reboots
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 14 Jul 2017 13:36:56 +0000 (15:36 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2017 14:41:56 +0000 (08:41 -0600)
commitfcbc545959676282e7f46be5c8d8aea26a89ea47
tree9011c59df16121778a017dc6bef86e38c94d2201
parent2e7f5d2af2155084c6f7c86328d36e698cd84954
nvmet: preserve controller serial number between reboots

The NVMe target has no way to preserve controller serial
IDs across reboots which breaks udev scripts doing
SYMLINK+="dev/disk/by-id/nvme-$env{ID_SERIAL}-part%n.

Export the randomly generated serial number via configfs and allow
setting of a serial via configfs to mitigate this breakage.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/configfs.c