Re: 2.4 -> 2.6 change: mount with disk not in drive semantics changed to something silly

Johnathan Hicks <[email protected]> Fri, 25 Feb 2005 20:08:51 -0500
Newsgroups gmane.linux.suse.packet-writing
Message-ID <20050225200851.000003f6@Gemini>
I agree with Nix that this should be considered a bug.
--John

On Wed, 23 Feb 2005 23:29:10 +0000
Nix <[email protected]> wrote:

> In the Linux 2.4 packet-writing patches, if you tried mounting a
> packet-written CD when there was a disk in the drive but the drive was
> ejected, it pulled the drive in and mounted it.
> 
> This is sane behaviour, I think.
> 
> In 2.6, that's changed: the first time you try to mount, you get
> 
> mount: /dev/pktcdvd/cdrw: can't read superblock
> 
> and the *second* time it works.
> 
> 
> This, to put it mildly, inconsistent behaviour leads to insanity like
> the following kludge in my backup scripts:
> 
> if ! mount /mnt/pcdrw 2>/dev/null && ! mount /mnt/pcdrw 2>/dev/null;
then
>     ... check and format the CD-RW ...
> fi  
> 
> 
> I imagine this is a bug.
> 
> Right?
> 
> -- 
> > ...Hires Root Beer...
> What we need these days is a stable, fast, anti-aliased root beer
> with dynamic shading. Not that you can let just anybody have root.
>  --- John M. Ford
> 
> -- 
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]