Skip to content

Commit

Permalink
SMBFS: Enable in-use volume snapshots
Browse files Browse the repository at this point in the history
Change-Id: I63aaafb7897646d0e244ac1d24d597fc59b44dd3
  • Loading branch information
petrutlucian94 authored and Luci committed Aug 17, 2015
1 parent aded8aa commit aa2c42e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions cinder/volume/drivers/smbfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def do_setup(self, context):
self._ensure_shares_mounted()
self._setup_allocation_data()

super(SmbfsDriver, self).do_setup(context)

def _setup_allocation_data(self):
if not os.path.exists(self._alloc_info_file_path):
fileutils.ensure_tree(
Expand Down Expand Up @@ -452,15 +454,6 @@ def _is_share_eligible(self, smbfs_share, volume_size_in_gib):
return False
return True

def _create_snapshot_online(self, snapshot, backing_filename,
new_snap_path):
msg = _("This driver does not support snapshotting in-use volumes.")
raise exception.SmbfsException(msg)

def _delete_snapshot_online(self, context, snapshot, info):
msg = _("This driver does not support deleting in-use snapshots.")
raise exception.SmbfsException(msg)

def _do_create_snapshot(self, snapshot, backing_filename, new_snap_path):
self._check_snapshot_support(snapshot)
super(SmbfsDriver, self)._do_create_snapshot(
Expand Down

0 comments on commit aa2c42e

Please sign in to comment.