Prevent invalid files from being used

See https://bugzilla.redhat.com/show_bug.cgi?id=882094

Signed-off-by: Andy Grover <agrover@redhat.com>
Some further manpage cleanups.

Signed-off-by: Andy Grover <agrover@redhat.com>
Allow "delete tpg4" as well as "delete 4"

Signed-off-by: Andy Grover <agrover@redhat.com>
Exception.message is deprecated

use str(exception) instead.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix docstring to reflect fileio backstores are buffered by default

https://bugzilla.redhat.com/show_bug.cgi?id=828681

Signed-off-by: Andy Grover <agrover@redhat.com>

Conflicts:
	targetcli/ui_backstore.py
add a note if user uses pscsi for scsi block device

Signed-off-by: Andy Grover <agrover@redhat.com>
Update manpage to mention you can run targetcli cmd

Instead of entering the command shell, you can also do e.g. "targetcli ls"
and it will execute that command and not enter the shell.

Signed-off-by: Andy Grover <agrover@redhat.com>
Print a warning if defining a mappedLun that already exists in the nodeacl

Signed-off-by: Andy Grover <agrover@redhat.com>
log.error only takes strings, not objects

Signed-off-by: Andy Grover <agrover@redhat.com>
use os.ftruncate() for sparse file extension

Seems slightly nicer!

Signed-off-by: Andy Grover <agrover@redhat.com>
Add some comments to document some classes as ABCs

Signed-off-by: Andy Grover <agrover@redhat.com>
Add ramdisk nullio support

Ported by Jerome Martin <jxm@netiant.com>
Conflicts:
	targetcli/ui_backstore.py
Merge branch 'devel'

Conflicts:
	targetcli/ui_backstore.py
Fix initscript to accept missing fabric modules

It is possible that we include spec files with rtlib for fabric modules not
currently installed. A current example is the usb_gadget fabric module.

The target initscript will simply issue a warning when a fabric module
referenced in a spec file cannot be loaded.

Also, on stop, the initscript now tries to do as much as possible, even
if unloading something fails along the way.
Ensure the first char of the version is a digit

Ported from rtslib/4bd9ec0e936366617ea77037771bc8d30d4e2987
Thanks to Joseph Glanville <joseph@cloudscaling.com>
Added header to Makefile
Allow TPGs tags to be 0
Add python-prettytable dependency
Allow the startup config to contain new attributes

Attributes not described in policy files but existing in the installed kernel
modules can now be loaded by rtslib.Config, which means they can also be dumped
to the startup config. We must allow loading them also from there.

Also, the initscript can now load a config with new attributes.
Reload live config after commit in config mode

Reloading the configuration from the live system after a commit before saving
it, in case this kernel has new attributes not yet in our policy files