if asok_conf:
d = asok_conf.groups(1)[0]
break
- path = "{0}/client.{1}.{2}.asok".format(d, self.client_id, self.fuse_daemon.subproc.pid)
- log.info("I think my launching pid was {0}".format(self.fuse_daemon.subproc.pid))
+ path = "{0}/client.{1}.*.asok".format(d, self.client_id)
return path
- def mount(self, mount_path=None, mount_fs_name=None, mount_options=[]):
+ def mount(self, mount_path=None, mount_fs_name=None, mount_options=[], **kwargs):
self.setupfs(name=mount_fs_name)
- self.setup_netns()
+ if opt_use_ns:
+ self.using_namespace = True
+ self.setup_netns()
+ else:
+ self.using_namespace = False
log.info('Mounting kclient client.{id} at {remote} {mnt}...'.format(
id=self.client_id, remote=self.client_remote, mnt=self.mountpoint))