def _sofs_is_mounted(self): mount_path = self.configuration.scality_sofs_mount_point.rstrip('/') for mount in volume_utils.read_proc_mounts(): parts = mount.split() if (parts[0].endswith('fuse') and parts[1].rstrip('/') == mount_path): return True return False
def _sofs_is_mounted(self): mount_path = self.configuration.scality_sofs_mount_point.rstrip('/') for mount in volume_utils.read_proc_mounts(): parts = mount.split() if (parts[0].endswith('fuse') and parts[1].rstrip('/') == mount_path): return True return False
def _sofs_is_mounted(self): """Check if SOFS is already mounted at the expected location.""" mount_path = self.sofs_mount_point.rstrip("/") for mount in volume_utils.read_proc_mounts(): parts = mount.split() if parts[0].endswith("fuse") and parts[1].rstrip("/") == mount_path: return True return False
def _sofs_is_mounted(self): """Check if SOFS is already mounted at the expected location.""" mount_path = self.sofs_mount_point.rstrip('/') for mount in volume_utils.read_proc_mounts(): parts = mount.split() if (parts[0].endswith('fuse') and parts[1].rstrip('/') == mount_path): return True return False