]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: add ns revalidation support
authorAnthony Iliopoulos <ailiop@suse.com>
Sun, 19 Apr 2020 23:48:50 +0000 (16:48 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commitb7b7613400a8377a9589688520ff883535ee5177
tree70ad6f52105d290ddd8e53cf4d65de65f93f6ee5
parentea795e13a697e6cbb12938cdd24a08008aaa41ab
nvmet: add ns revalidation support

Add support for detecting capacity changes on nvmet blockdev and file
backed namespaces. This allows for emulating and testing online resizing
of nvme devices and filesystems on top.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
[chaitanya: Fix comments posted on V1]
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
[hch: reuse code a bit more]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/io-cmd-bdev.c
drivers/nvme/target/io-cmd-file.c
drivers/nvme/target/nvmet.h