'Creates a GPFS volume.'

def create_volume(self, volume):

    self._verify_gpfs_path_state(self.configuration.gpfs_mount_point_base)
    volume_path = self._get_volume_path(volume)
    volume_size = volume['size']
    self._create_sparse_file(volume_path, volume_size)
    self._set_rw_permission(volume_path)
    self._set_volume_attributes(volume, volume_path, volume.metadata)
    if (not self.configuration.gpfs_sparse_volumes):
        self._allocate_file_blocks(volume_path, volume_size)
