]> www.infradead.org Git - users/sagi/libnvme.git/commit
nvme: allow to overwrite base sysfs path
authorDaniel Wagner <dwagner@suse.de>
Tue, 30 Jan 2024 17:28:40 +0000 (18:28 +0100)
committerDaniel Wagner <wagi@monom.org>
Fri, 2 Feb 2024 07:28:06 +0000 (08:28 +0100)
commit11a0918a99722967b72d6337d2f6067caf2f21a7
tree9eb27268b6c35b8ff2f269f267bc423edcfd305e
parent62092574233a823f107f6afa9bf4c0e1861e4da2
nvme: allow to overwrite base sysfs path

In order to be able to test the topology scan code, make the
lookup paths flexible. Check if the LIBNVME_SYSFS_PATH environment
variable is set and if so use this as base path.

We could also introduce a setter for this, but this is really
a debugging interface and thus I don't really want it to be
visible in the public API.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/fabrics.c
src/nvme/filters.c
src/nvme/private.h
src/nvme/tree.c