CFSNode defining __str__ seems like a bad idea

Explicit is better than implicit.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix PyPi version to be compliant

see https://github.com/agrover/rtslib-fb/issues/22

We can't use fb* in the name I guess, so change the name of the package
to rtslib-fb and use a more normal version.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix srpt fabric name

It's "srpt", not "ib_srpt". ib_srpt is just the module name.

Signed-off-by: Andy Grover <agrover@redhat.com>
add support for ib wwn type

srpt does not use an actual eui, so define a separate wwn type for it.

Signed-off-by: Andy Grover <agrover@redhat.com>
add from_fabric_wwn method to fabricmodules

fabric.targets looks at the filesystem to get the list of targets. These
are in fabric-specific format but we need normalized wwns to return
Target objects. Add from_fabric_wwn() to convert. This function can also
be used to simplify fabric.wwns().

Signed-off-by: Andy Grover <agrover@redhat.com>
Use to_fabric_wwn when setting target path, nacl path, and nexus

Fabrics don't take normalized wwns, so convert to fabric wwns when
dealing with configfs.

Signed-off-by: Andy Grover <agrover@redhat.com>
rewrite LUN._list_mapped_luns()

Signed-off-by: Andy Grover <agrover@redhat.com>
Clean up LUN.delete()

Typo and make iteration more idiomatic.

Signed-off-by: Andy Grover <agrover@redhat.com>
Updated scsi path<->hctl utils for PSCSI TYPE_DISK/TYPE_ROM on modern kernels

* Functions rtslib.utils.convert_scsi_path_to_hctl() and
  rtslib.utils.convert_scsi_hctl_to_path() were using
     '/sys/class/scsi_device/$SCSI_HCTL/device/block/$SCSI_DEVICE/'
  which is now absent from modern kernels. Now using
     '/sys/block/$SCSI_DEVICE/device/scsi_device/$SCSI_HCTL'
  which is present in both 2.6x and all 3.x kernels.
src: orthographic fixes

The correct form is "instantiation".

Merge-Fixes-By: Andy Grover <agrover@redhat.com>
rtslib: make write_protect=0 create read-only mapped LUNs

The write_protect parameter was incorrectly parsed so that whenever it
was specified, even with the value 0, it set the mapped LUN read-only.

	cd /iscsi/iqn.0000-00.a.b/tpgt1/acls/iqn.0000-00.de.suse:foo
	create tpg_lun=0 mapped_lun=0 write_protect=0

Merge-Fixes-By: Andy Grover <agrover@redhat.com>