[lkml]   [1997]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectide.c question!

    I'm willing to write a little tool for Linux. I noticed, that I can swap Ide
    drives on-the-fly, i.e., umount drive, turn off the power of particular
    drive, pull of the cable, and it's ok for Linux. The same way I can insert
    drive, but.. only the same drive.

    So, question: now do I implement a re-probe of devices? So I can insert
    drive of new type, and for example:

    $ rehashdrives
    hda: WDC AC2700F, 696MB w/64kB Cache, LBA, CHS=708/32/63
    hdb: OTI-SCYLLA, ATAPI CDROM drive

    Well, is it possible to call do_probe or any of these procedures in ide.c by
    implementing another ioctl? Is it ok for kernel? If so, which exactly
    function I should call and how (I know, we'll need to BLKRRPART after
    calling reprobe)?

    Another question: I have an old buggy maxtor drive - 40 megs. It works, but
    not under Linux: "No ??Q after issuing write". What can I do with it? :-)
    Maybe, the best interface for this drive is wall, but.. ;-)


     \ /
      Last update: 2005-03-22 13:39    [W:0.031 / U:7.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site