bug-parted
[Top][All Lists]
Advanced

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

device detection


From: Glenn McGrath
Subject: device detection
Date: Wed, 15 Nov 2000 12:45:40 +1100

I notice there is FIXME note around pde_devices_probe_all() in devices.

Currently it just probes a static list of likely target devices, there
are a couple of problems that i see here.

1) Whilst the static list of devices will cover most situations,  it
wont allways get all devices. Maybe im strange, but i have 6 ide
channels.

2) It wont work with devfs, devfs puts device handles in different
positions.


It would be good if parted obtained an acurate list of devices from the
OS.

It could be done parsing /proc/devices or /proc/partitions, but this
method will still fail if the kernel doesnt have /proc support compiled
in.

Maybe there is a better way though, any ideas ?


Glenn



reply via email to

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