def mount(self, mount_path, parent_path=None): FuseBase.mount(self, mount_path, parent_path) res = subprocess.call( ["google-drive-ocamlfuse -skiptrash " + mount_path], shell=True) if res != 0: raise RuntimeError("Cannot mount google_drive filesystem [#" + str(res) + "]")
def mount(self, mount_path, parent_path=None): if parent_path is None: raise ValueError("EncFS filesystem requires parent path") FuseBase.mount(self, mount_path) res = subprocess.call(["encfs --standard --extpass=/usr/lib/ssh/ssh-askpass "+parent_path+" "+mount_path], shell=True) if res != 0: raise RuntimeError("Cannot mount encfs filesystem [#"+str(res)+"]")
def mount(self, mount_path, parent_path=None): FuseBase.mount(self, mount_path, parent_path) res = subprocess.call( ["sshfs " + self.target + ":" + self.path + " " + mount_path], shell=True) if res != 0: raise RuntimeError("Cannot mount sshfs filesystem [#" + str(res) + "]")
def mount(self, mount_path, parent_path=None): if parent_path is None: raise ValueError("EncFS filesystem requires parent path") askpass = "******" if not os.path.isfile(askpass): raise RuntimeError("Cannot find "+askpass) FuseBase.mount(self, mount_path) res = subprocess.call(["encfs --standard --extpass="******" "+parent_path+" "+mount_path], shell=True) if res != 0: raise RuntimeError("Cannot mount encfs filesystem [#"+str(res)+"]")
def mount(self, mount_path, parent_path=None): if parent_path is None and self.bup.get_dir() is None: raise ValueError("Bup FUSE filesystem requires parent path") FuseBase.mount(self, mount_path, parent_path) if parent_path is not None: self.bup.set_dir(parent_path) self.bup.init() self.bup.fuse(mount_path, { #"stdout": callbacks["onstatus"], #"stderr": callbacks["onstatus"] }) time.sleep(1)
def mount(self, mount_path, parent_path=None): cfg = self.cfg if cfg.get("type", "") == "": return # Nothing to do FuseBase.mount(self, mount_path, parent_path) if os.path.ismount(mount_path): pass #raise RuntimeError("Filesystem already mounted") else: cmd = "mount -t "+cfg["type"]+" "+cfg["target"]+" "+mount_path+" -o "+cfg["options"] res = sudo(cmd) if res == 32: pass #raise RuntimeError("Filesystem busy") elif res != 0: raise RuntimeError("Could not mount "+cfg["type"]+" filesystem [#"+str(res)+"] (command: "+args+")")
def mount(self, mount_path, parent_path=None): if parent_path is None and self.bup.get_dir() is None: raise ValueError("Bup FUSE filesystem requires parent path") FuseBase.mount(self, mount_path, parent_path) if parent_path is not None: self.bup.set_dir(parent_path) self.bup.init() self.bup.fuse( mount_path, { #"stdout": callbacks["onstatus"], #"stderr": callbacks["onstatus"] }) time.sleep(1)
def mount(self, mount_path, parent_path=None): cfg = self.cfg if cfg.get("type", "") == "": return # Nothing to do FuseBase.mount(self, mount_path, parent_path) if os.path.ismount(mount_path): pass #raise RuntimeError("Filesystem already mounted") else: cmd = "mount -t " + cfg["type"] + " " + cfg[ "target"] + " " + mount_path + " -o " + cfg["options"] res = sudo(cmd) if res == 32: pass #raise RuntimeError("Filesystem busy") elif res != 0: raise RuntimeError("Could not mount " + cfg["type"] + " filesystem [#" + str(res) + "] (command: " + args + ")")
def __init__(self, cfg): FuseBase.__init__(self) self.cfg = cfg
def mount(self, mount_path, parent_path=None): FuseBase.mount(self, mount_path, parent_path) res = subprocess.call(["google-drive-ocamlfuse -skiptrash " + mount_path], shell=True) if res != 0: raise RuntimeError("Cannot mount google_drive filesystem [#" + str(res) + "]")
def __init__(self, worker): FuseBase.__init__(self) self.bup = worker
def __init__(self): FuseBase.__init__(self)
def __init__(self, cfg): FuseBase.__init__(self) self.target = cfg["target"] self.path = cfg.get("path", "")
def mount(self, mount_path, parent_path=None): FuseBase.mount(self, mount_path, parent_path) res = subprocess.call(["sshfs "+self.target+":"+self.path+" "+mount_path], shell=True) if res != 0: raise RuntimeError("Cannot mount sshfs filesystem [#"+str(res)+"]")