Karel Zak <kzak@xxxxxxxxxx> writes: > On Fri, Jul 13, 2007 at 11:21:23AM +0200, Kay Sievers wrote: >> On 7/12/07, Matthias Koenig <mkoenig@xxxxxxx> wrote: >> >it would be nice to have a mount option "nofail" indicating >> >that mount should not return an error if the device does not >> >exit. This is useful for hotpluggable devices which are configured >> >in fstab and might not exist at boot time. >> >> We should probably ignore failures of a failed mount syscall too? >> The device node may exist, even when there is no kernel device at the >> moment as as some subsystems like md create a bunch of nodes >> unconditionally. > > Yes. It seems mount(2) returns ENXIO, ENOTBLK, ENOENT or ENOTDIR when > something is wrong with source device. > > Please, see updated patch below. Seems to be Ok for me. Matthias - To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html