lkml.org 
[lkml]   [1999]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectIDE-Bus rescan, like bootup...
Hello all!

I've bought a special IDE-rack which can safetly remove, and insert IDE
drives... I've got a software for W*nd*ws to rescan the IDE bus, and gain
access to the freshly inserted HD. The Same I want to do under Linux... As
I looked into the kernelsource, this may done like this:

int main()
{
int x[]={0x170,0x376,15};
int fd=open("/dev/hdc", O_RDONLY);
int i = ioctl(fd,HDIO_SCAN_HWIF, &x);
close(fd);
}

But anytime I run this ioctl it's return with input/output error, while
/dev/hdc is _NOT_ in use by any case (not mounted, not accessed, etc.)...

Anyone knows what the problem is?

I'm using kernel 2.2.9 with generic IDE support, of coz' on an Intel
platform... (Intel P233MMX)



- Please CC the answers, because i'm not subscribed to the list -


thanks
--
|~~~~||~~\. mail from: EMAIL: poison@cat.hu .
| ~|'| ~ | ..-, , WEB: http://poison.cat.hu :
| |~' | |~'.~.| `..~.:`. IRC: #linux.hu, #linux .
`~ `~ ~ ` ~ ~ ` ' ```````````````'''''''''''''


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.071 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site