[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] mount.c: bail out early when no media exists
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2015-11-07 19:52:39
Message-ID: CAK1hOcNHw3gsgO=uTsp8PQF34yUAhEubAsQOEyaSra6Zt6tFYw () mail ! gmail ! com
[Download RAW message or body]

On Wed, Oct 28, 2015 at 3:08 PM,  <sgw@linux.intel.com> wrote:
> From: "Maxin B. John" <maxin.john@intel.com>
>
> The current behaviour of busybox is to try all fstype when automounting
> even when no media exists.  The util-linux mount command bails when
> no media exists, so change the behaviour of busybox to do the same.
>
> without this fix:
> $ time ./busybox mount /dev/cdrom /mnt
> mount: mounting /dev/cdrom on /mnt failed: No medium found
>
> real    0m0.573s
> user    0m0.000s
> sys     0m0.007s
>
> with this fix:
> $ time ./busybox mount /dev/cdrom /mnt
> mount: mounting /dev/cdrom on /mnt failed: No medium found
>
> real    0m0.042s
> user    0m0.000s
> sys     0m0.002s

The message is the same, it just took a bit longer to fail.

Is it that critical to you to not wait 0.5 second?
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic