bug-parted
[Top][All Lists]
Advanced

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

Re: Removing "pointless" exception for exotic block devices causes probe


From: Andrew Clausen
Subject: Re: Removing "pointless" exception for exotic block devices causes probe to find CDs
Date: Sun, 5 Dec 2004 07:48:05 +1100
User-agent: Mutt/1.5.6+20040722i

On Sat, Dec 04, 2004 at 10:02:40AM -0500, Woody Suwalski wrote:
> I have mentioned the same problem to Andrew long time ago....
> 
> I suggested restoring (inside parted) checking if the IOCTL GetGeometry 
> fails.
> If it fails: either it is a CD drive, or device which parted should not 
> touch either, so the disk should not be added to the list.
> 
> For now I have implemented a simpler patch - disabled inside parted a 
> call to "probe_standard_devices", so that what is left is 
> /proc/partition info. Works for me - no CD drives there...

Is there any reason why checking "dev->read_only" wouldn't work?

Cheers,
Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]