summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-05-05 12:16:05 -0700
committerAndy Grover <agrover@redhat.com>2014-05-05 12:16:05 -0700
commit198ea6cbcb6adea2af7da2d5104eb64edd338d7f (patch)
tree549b55244a990c79ea1e2e337bd1955f0b21a19d
parentea92997228dafb111ae4708b6f41a7086f120056 (diff)
downloadtargetcli-198ea6cbcb6adea2af7da2d5104eb64edd338d7f.tar.gz
Remove write_back param from block backstore create cmd
This used to translate to setting emulate_write_cache, but this is no longer supported by the kernel (a good thing). targetcli commands are not an API, so we can change this whenever it is appropriate. Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r--targetcli/ui_backstore.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/targetcli/ui_backstore.py b/targetcli/ui_backstore.py
index b67a3bb..623d5b9 100644
--- a/targetcli/ui_backstore.py
+++ b/targetcli/ui_backstore.py
@@ -374,7 +374,7 @@ class UIBlockBackstore(UIBackstore):
self.so_cls = UIBlockStorageObject
UIBackstore.__init__(self, 'block', parent)
- def ui_command_create(self, name, dev, readonly=None, write_back=None):
+ def ui_command_create(self, name, dev, readonly=None):
'''
Creates an Block Storage object. I{dev} is the path to the TYPE_DISK
block device to use.
@@ -382,9 +382,8 @@ class UIBlockBackstore(UIBackstore):
self.assert_root()
readonly = self.ui_eval_param(readonly, 'bool', False)
- write_back = self.ui_eval_param(write_back, 'bool', True)
- so = BlockStorageObject(name, dev, readonly=readonly, write_back=write_back)
+ so = BlockStorageObject(name, dev, readonly=readonly)
ui_so = UIBlockStorageObject(so, self)
self.setup_model_alias(so)
self.shell.log.info("Created block storage object %s using %s."