From: Arthur v. D. <sou...@av...> - 2013-11-28 21:11:08
|
Hello all, In the Unanswered Questions section in the Wiki there is the question to pass fuse helper script options from fstab. I think I've found a way to implement this, without breaking existing configurations. My configuration, which triggered me to solve this, is to automount an encrypted directory using fuse.encfs. The password for the encrypted volume can be supplied by an executable which is indicated by the --extpass option to fuse.encfs. (That the password is stored on this system is not an issue, the encrypted directory is to be protected when stored off-site) The current mount.fuse usage says: mount.fuse source destination -t type [-o opt[,opt...]] Every option given is added to the -o opt,opts list passed to the mount.type command. I modified the mount.fuse source code so the options provided can be treated in two ways. Options without starting dash are added to the comma-separated options list as normal. Options with a starting dash are added to the command line as separate command line parameters. This way I can provide the necessary command line options for mount.encfs on the options list of the autofs configuration. Haven't tried it, but options in fstab should be possible now too. I've made a fork in sourceforge, see http://sourceforge.net/u/afvandongen/fuse/ci/master/tree/ . The only file I changed is util/mount.fuse.c, the diff can be found under http://sourceforge.net/u/afvandongen/fuse/ci/master/tree/util/mount.fuse.c?diff=e6e7a249c5c70187144dd9cd3767801ed05a1763 Please have a look at it, any feedback about this idea and my implementation is welcome. Arthur |