5403N/A# vim: tabstop=4 shiftwidth=4 softtabstop=4 5403N/A# Copyright (c) 2012 OpenStack LLC. 6847N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. 5403N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may 5403N/A# not use this file except in compliance with the License. You may obtain 5403N/A# Unless required by applicable law or agreed to in writing, software 5403N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 5403N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 5403N/A# License for the specific language governing permissions and limitations 5403N/AVolume driver for Solaris ZFS NFS storage 5403N/A help=(
'Schedule volumes round robin across NFS shares.')),
5403N/A """Local ZFS NFS volume operations.""" 5403N/A """Retrieve volume status info.""" 5403N/A """Creates a sparse file of a given size in GiB.""" 5403N/A """Creates a regular file of given size in GiB.""" 5403N/A """Sets access permissions for given NFS path. 5403N/A :param path: the volume file path. 5403N/A """Sets 666 permissions for the path.""" 5403N/A """Sets read-write permissions to the owner for the path.""" 5403N/A """Calculate available space on the NFS share. 5403N/A Implement a round robin generator for share list 5403N/A """Choose NFS share among available ones for given volume size. 5403N/A For instances with more than one share that meets the criteria, the 5403N/A share with the least "allocated" space will be selected. 5403N/A :param volume_size_in_gib: int size in GB 5403N/A # Round Robin volume placement on shares 5403N/A # Place volume on share with the most free space. 6847N/A """Extend an existing volume to the new size.""" 5403N/A For Solaris we always operate in a secure mode and do not 5403N/A rely on root or any rootwrap utilities. 5403N/A With RBAC we can do what we need as the cinder user. We 5403N/A set the nas_secure_file.XXX to be true by default. We ignore 5403N/A any conf file setting for these string vars. 5403N/A We don't ever use these nas_secure_file_XXX vars in this driver 5403N/A from opening bugs stating we are not running in a secure mode.