'Creates a snapshot.
:param snapshot: snapshot reference'

def create_snapshot(self, snapshot):

    volume = self._get_snapshot_volume(snapshot)
    nfs_share = volume['provider_location']
    nms = self.share2nms[nfs_share]
    (vol, dataset) = self._get_share_datasets(nfs_share)
    folder = ('%s/%s/%s' % (vol, dataset, volume['name']))
    nms.folder.create_snapshot(folder, snapshot['name'], '-r')
