agrover/rtslib-fb — Issue #8: code deduplication (LUN)
Author: JonnyJD
Created: 2012-03-07 21:57:58+00:00
State: open

There is loop.LUN and target.LUN.

I see that they are different, but they do share a LOT of code.```__init__``` is quite similar, ```_configure``` , ```_get_alias```,```_get_storage_object`` are *completely* the same. Maybe even more, I didn't check.

This needs a single LUN class and LoopLUN and TargetLUN that inherit from it.
That LUN class should probably go in ```tcm.py```.

If we don't want to change the API we might keep the class names, but we should still have a super class. I would prefer changing the names, because having two (or 3) different LUN classes in the lib is not optimal.