Menu

#4 Support mounting via /etc/fstab

open
nobody
None
5
2012-04-02
2012-04-02
No

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

Discussion

  • Dario Minnucci

    Dario Minnucci - 2012-04-21

    Working patch currently used in djmount Debian package

     

Log in to post a comment.

MongoDB Logo MongoDB