[SPDK] is it possible to add a blacklist for the lvol module?
peng yu <yupeng0921 at gmail.com>
| Newsgroups | dev.linux.lists.spdk |
|---|---|
| Message-ID | <CAG3TDc2EFntGM80UGX3oTrQ4ygUR2WmDg-LNgajiNC+h0Rq5ng@mail.gmail.com> |
I have a below scenario: A disk is controlled by SPDK APP A. SPDK APP A exports the disk as a NVMEoF target SPDK APP B is a NVMEoF initiator, it connects to that disk. SPDk APP B creates a lvs and a lvol on the disk. When I restart the APP A and APP B. The APP A will examine the disk and find there is a lvs, and then the lvol module on APP A will claim this disk, then this disk can't be exported over NVMEoF. Could we add a api to the lvol module? The api could add a dev name pattern to a black list. When the lvol module examine a disk, it will check against the black list, if a dev name matches the black list, it will ignore this device. Best regards.