compression = self.configuration.nexenta_volume_compression
self.nms_mock.server.get_prop('volroot').AndReturn('/volumes')
- self.nms_mock.folder.create_with_opts(
+ self.nms_mock.folder.create_with_props(
'stack', 'share/volume-1', {'compression': compression})
self.nms_mock.netstorsvc.share_folder(self.TEST_SHARE_SVC,
'stack/share/volume-1',
self.mox.ResetAll()
self.nms_mock.server.get_prop('volroot').AndReturn('/volumes')
- self.nms_mock.folder.create_with_opts(
+ self.nms_mock.folder.create_with_props(
'stack', 'share/volume-1', {'compression': compression})
self.nms_mock.netstorsvc.share_folder(
self.TEST_SHARE_SVC, 'stack/share/volume-1',
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_with_opts(
+ nms.folder.create_with_props(
vol, folder,
{'compression': self.configuration.nexenta_volume_compression}
)