import cephfs
from .snapshot_util import mksnap, rmsnap
+from .pin_util import pin
from .template import GroupTemplate
from ..fs_util import listdir, get_ancestor_xattr
from ..exception import VolumeException
return []
raise
+ def pin(self, pin_type, pin_setting):
+ return pin(self.fs, self.path, pin_type, pin_setting)
+
def create_snapshot(self, snapname):
snappath = os.path.join(self.path,
self.vol_spec.snapshot_dir_prefix.encode('utf-8'),