open-iscsi / rtslib-fb

Python library for configuring the Linux kernel-based multiprotocol SCSI target (LIO)
Apache License 2.0
73 stars 90 forks source link

Allow bs_cache to be bypassed #141

Closed mikechristie closed 5 years ago

mikechristie commented 6 years ago

The ceph tools might have multiple daemons making and querying the system. To avoid invalidating the cache for every creation and lookup this allows tools like ours to avoid the cache.

If the caller passed in the index during creations or lookups then use that value instead of building/quering the cache.

Signed-off-by: Mike Christie mchristi@redhat.com

maurizio-lombardi commented 5 years ago

Looks ok to me