[SPDK] Re: How to get transport ID from spdk_bdev
Luse, Paul E <paul.e.luse at intel.com>
| Newsgroups | dev.linux.lists.spdk |
|---|---|
| Message-ID | <BYAPR11MB383185F7D5EF46D182D593EDAD190@BYAPR11MB3831.namprd11.prod.outlook.com> |
Hi Yawei, Generically the bdev layer won’t have anything like this but each bdev module supports its own set of RPCs that are specific to the bdev. Take a look a the nvme bdev RPC rpc_dump_nvme_controller_info() and see if it has what you need. New RPC’s can also be added as makes sense for various use cases (depending on what your inputs are desired outputs are) Hope that helps…. Thx Paul From: Niu, Yawei <yawei.niu(a)intel.com> Date: Monday, October 26, 2020 at 12:09 AM To: Storage Performance Development Kit <spdk(a)lists.01.org> Subject: [SPDK] How to get transport ID from spdk_bdev Hi, Is there any way to get transport ID (and ns id) of an existing spdk_bdev? I think that could be useful for the applications built upon bdev layer and want to know the transport ID and namespace ID where the bdev is located, but I failed to find such kind of exported interfaces. I’m wondering if this controller information is deliberately being hidden behind bdev layer? In our use case, we just want to get the association of bdev and ctrlr/ns for configuration management purpose. Thanks -Niu _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org