linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sysfs method for registering/unregistering ide devices ?
@ 2004-03-13 14:43 Paul Ionescu
  0 siblings, 0 replies; only message in thread
From: Paul Ionescu @ 2004-03-13 14:43 UTC (permalink / raw)
  To: linux-ide, lkml

Hello,

Is there any possibility to unregister/scan ide devices with sysfs ?
I've searched lkml and linux-ide list archives and I didn't found any
answers.
Is there any sysfs file like /sys/..../registered, where you could echo
0 or 1 if you want to register or unregister a specific interface ?

Till now, I used hdparm -U/-R option for this task.
While this is still available in kernel 2.6, the implementation of
 HDIO_UNREGISTER_HWIF and  HDIO_SCAN_HWIF seems more like a hack than a
sane implementation.
Reasons:
Unregister and then register the same device, and you will have
different files for it int procfs and sysfs.
For unregistering or registering a device, you need at least a valid
block device. So I cannot unregister all my drives, and register them
again (or at least not at the same time).




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-13 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-13 14:43 sysfs method for registering/unregistering ide devices ? Paul Ionescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).