Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660098
(Transcription of a Bug report received by email from: Kevin Vargo <vargok@yahoo.com>)
Hello Dario,
I'd like to submit a patch for djmount, to permit "ignoring" of non-relevant mount options,
as per -s/sloppy from mount.
I've attached my patch vs. 0.71-3.
If I need to provide something
else/somehow else, please advise, I'll be happy to try.
I've not submitted a separate bug report, as I couldn't see how to submit the patch with it.
Bug report is basically:
`djmount' can't be used from /etc/fstab, because djmount considers any unknown options to be
an error, and exits. `mount' supports a '-s' option for "sloppy" where unknown options are
ignored.
I've added both '-s' and '-o sloppy' to the latest (0.71-3) to engage behavior that reports,
but really ignores unknown options. That is, this patch permits specification of 'sloppy'
as an /etc/fstab option, and thereafter permits unknown options to be logged as warnings, but
`djmount' continues.
Then, an /etc/fstab entry like:
djmount /media/upnp fuse noauto,ro,user,allow_other,sloppy 0 0
succeeds, whereas prior, it would fail because 'standard' options like 'nodev' and 'nosuid' are
unknown to djmount as in:
[W] Found unknown option = noexec; ignoring
[W] Found unknown option = nosuid; ignoring
[W] Found unknown option = nodev; ignoring
[I] Mount options = ro,noexec,nosuid,nodev,s,allow_other
[I] Charset : successfully initialised charset='UTF-8'
total 0
Thanks,
Kevin
Working patch applied in Debian djmount package is available at:
http://anonscm.debian.org/gitweb/?p=collab-maint/djmount.git;a=blob;f=debian/patches/003-support-fstab-mounting.diff;h=551bac426fc3a5faefc12eed123c997809ee5824;hb=4f84caa829fa9329eb0981c4ee5082d884951057
Working patch currently used in djmount Debian package