mount nofail: what failures should we allow ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i've received two requests for the "nofail" option.  the doc for the
option is a bit ... terse ... so it's hard to guess at the overall
intention.

(1) ignore ENOMEDIUM like:
sys-utils/mount.c could be updated to do:
    case ENOMEDIUM:
        if (uflags & MNT_MS_NOFAIL)
            return MOUNT_EX_SUCCESS;
        warnx(_("no medium found on %s"), src);
        break;
this is for cases like cd/dvd drives which happens to have no disk loaded.

(2) ignore unknown fs types.  e.g. when a kernel config/module is missing
support for the requested filesystem type.  so a fstab entry like:
	..src..  /mnt/foo  somefs defaults,nofail
rather than error out with:
	mount: unknown filesystem type 'somefs'
it would just issue a warning like it does for other nofail options.

if we go this route though, how far should we take it ?  should we make
all failures when nofail is active the same ?  i'm kind of leaning that
way ...
-mike

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux