Re: CRDOM_NOMEDIUM_RETRIES in mount.c

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

 



On Mon, Apr 26, 2010 at 02:43:06PM +0100, Tony McConnell wrote:
> I've started using 2.17.2, and discovered that there is now a large
> delay before mount returns when there is no medium in the optical
> drive.  Version 2.14.1 didn't have this delay.
> 
> Question: Is it possible to make CRDOM_NOMEDIUM_RETRIES (from
> blkdev.h) configurable via parameter? Or is there a better way to
> detect presence of media?

 I don't want to add an extra option for this thing. 

> This now adds 15 seconds onto my apps startup-time...

 Maybe we can use something more sane, 3 retries with 1 second delay 
 (= whole delay 3 seconds). Or we can remove this "feature" at all.

 The original thread about this topic:
 http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/1495

 CC: to Jens who is kernel CDROM driver maintainer, maybe he knows a
 better solution for ENOMEDIUM error. The current solution with
 sleep() sucks...

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
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

[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