# avoid circular dep by importing here:
from tasks.cephfs.fuse_mount import FuseMount
d = misc.get_testdir(self._ctx)
- m = FuseMount(self._ctx, {}, d, "admin", self.client_remote, cephfs_name=self.name)
+ m = FuseMount(self._ctx, d, "admin", self.client_remote, cephfs_name=self.name)
m.mount_wait()
m.run_shell_payload(cmd)
m.umount_wait(require_clean=True)
# Refer mount.py for docstrings.
class FuseMount(CephFSMount):
- def __init__(self, ctx, client_config, test_dir, client_id,
- client_remote, client_keyring_path=None, cephfs_name=None,
- cephfs_mntpt=None, hostfs_mntpt=None, brxnet=None):
+ def __init__(self, ctx, test_dir, client_id, client_remote,
+ client_keyring_path=None, cephfs_name=None,
+ cephfs_mntpt=None, hostfs_mntpt=None, brxnet=None,
+ client_config={}):
super(FuseMount, self).__init__(ctx=ctx, test_dir=test_dir,
client_id=client_id, client_remote=client_remote,
client_keyring_path=client_keyring_path, hostfs_mntpt=hostfs_mntpt,
cephfs_name=cephfs_name, cephfs_mntpt=cephfs_mntpt, brxnet=brxnet)
- self.client_config = client_config if client_config else {}
+ self.client_config = client_config
self.fuse_daemon = None
self._fuse_conn = None
self.id = None
def __init__(self, ctx, test_dir, client_id, client_keyring_path=None,
client_remote=None, hostfs_mntpt=None, cephfs_name=None,
cephfs_mntpt=None, brxnet=None):
- super(LocalFuseMount, self).__init__(ctx=ctx, client_config=None,
- test_dir=test_dir, client_id=client_id,
- client_keyring_path=client_keyring_path,
+ super(LocalFuseMount, self).__init__(ctx=ctx, test_dir=test_dir,
+ client_id=client_id, client_keyring_path=client_keyring_path,
client_remote=LocalRemote(), hostfs_mntpt=hostfs_mntpt,
cephfs_name=cephfs_name, cephfs_mntpt=cephfs_mntpt, brxnet=brxnet)