bug-parted
[Top][All Lists]
Advanced

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

Parted 1.6.21 finds partitions on DVD-ROM drives -- Bug or feature?


From: Bernhard Rosenkraenzer
Subject: Parted 1.6.21 finds partitions on DVD-ROM drives -- Bug or feature?
Date: Wed, 2 Mar 2005 22:24:01 +0100
User-agent: KMail/1.7.2

SSIA -- this code fragment

PedDevice *dev=0;
while(dev=ped_device_get_next(dev)) {
        puts(dev->path);
}

Prints out all my harddisks as expected - but additionally, it prints all 
DVD-ROM drives that have a disk in them, and even claims there's a partition 
(which is obviously not true). (e.g. I get
/dev/hda1       [Correct -- my swap partition]
/dev/hda2       [Correct -- my / partition]
/dev/hdc1       [Incorrect -- /dev/hdc is my DVD-ROM]
)

Verified on Linux 2.6.11-rc5-mm1, parted 1.6.21.

Is this a bug or some sort of feature I fail to understand?
If it's a feature, what's the best way to get only harddisks? I'm currently 
checking for sector_size==2048, but that's suboptimal...

LLaP
bero




reply via email to

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