-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to change mount_path_base by configuration #4
Comments
Why is it not inherently possible to mount under different directory? |
For simplicity, it only uses one directory, which it "believes to control exclusively".
Figuring out which systems are mounted now is as simple as this code in def get_mounted_ids(self):
# Looking for /mnt/sshfs/{id} in output that looks like this:
# user@host:/remote/path on /mnt/sshfs/id type fuse.sshfs ...
# "mount -l -t fuse.sshfs" cannot be used, as it requires root privileges
mounted = shell_exec('mount -l')
regex = re.compile(' %s(.+?) type fuse\.sshfs' % self.mount_path_base)
return regex.findall(mounted) Thinking about it, the above code is a little fragile (as it depends on the above assumption of exclusive control over If we want to have custom mount directories, the above code needs to be more complicated. The UI in sftpman-gtk also needs to be more complicated to account for custom mount paths. Having custom mount paths also introduces additional failure scenarios (permissions problems for some paths, but not for others, etc.) Surely, it's possible to do, I just haven't felt the need to implement it and no one has contributed it. |
+1 for this. Apple has decided that the root file system shall be read only, so |
Took a stab at writing the beginnings of this feature. As far as I can tell sftpman doesn't have an application-level settings file, so I added one in Another way of implementing this would be having the mount directory be defined absolutely by systems, defaulting to |
This seems like a good beginning. I'd rather we enable it for all platforms and not make it depend on a flag (like |
It would be great if the mount path (currently fixed /mnt/sshfs) were configurable by the user.
Edit: Ah, just noticed it's under Known limitations. Well, let's keep this issue for better reference and discussion then.
The text was updated successfully, but these errors were encountered: