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

Do not change dbroot after drivers have been registered #156

Closed iammattcoleman closed 4 years ago

iammattcoleman commented 4 years ago

Resolves bug 1676669 on Red Hat Bugzilla.

maurizio-lombardi commented 4 years ago

Thanks! Looks ok to me

maurizio-lombardi commented 4 years ago

Maybe it would make sense to print an error message if set_dbroot() detects that there are already some drivers registered?

iammattcoleman commented 4 years ago

I've updated it to warn when target drivers have already been registered.