compression = self.configuration.nexenta_volume_compression
self.nms_mock.server.get_prop('volroot').AndReturn('/volumes')
- self.nms_mock.folder.create('stack', 'share/volume-1',
- '-o compression=%s' % compression)
+ self.nms_mock.folder.create_with_opts(
+ 'stack', 'share/volume-1', {'compression': compression})
self.nms_mock.netstorsvc.share_folder(self.TEST_SHARE_SVC,
'stack/share/volume-1',
self.TEST_SHARE_OPTS)
self.mox.ResetAll()
self.nms_mock.server.get_prop('volroot').AndReturn('/volumes')
- self.nms_mock.folder.create('stack', 'share/volume-1',
- '-o compression=%s' % compression)
+ self.nms_mock.folder.create_with_opts(
+ 'stack', 'share/volume-1', {'compression': compression})
self.nms_mock.netstorsvc.share_folder(
self.TEST_SHARE_SVC, 'stack/share/volume-1',
self.TEST_SHARE_OPTS).AndRaise(nexenta.NexentaException('-'))
vol, dataset = self._get_share_datasets(nfs_share)
folder = '%s/%s' % (dataset, volume['name'])
LOG.debug(_('Creating folder on Nexenta Store %s'), folder)
- nms.folder.create(
+ nms.folder.create_with_opts(
vol, folder,
- '-o compression=%s' % self.configuration.nexenta_volume_compression
+ {'compression': self.configuration.nexenta_volume_compression}
)
volume_path = self.remote_path(volume)