Thanks Artem

I'm new to libdevinfo. I'm trying to identify mountable usb nodes in /devices, 
so as to mount them after the ramdisk is loaded.

    > I'm working on booting OS from usb drive.

    But it already works. What exactly are you trying to do? 


I should have mentioned, I'm working on booting BELENIX (currently live CD) 
from USB.

    > I tried to walk minor nodes of type DDI_NT_UGEN (c file attached)

    DDI_NT_UGEN are ugen(7D) driver links, why would you want them.

    > The raw address of plugged in flash drive is (from rmformat):
    > /devices/[EMAIL PROTECTED],0/pci1019, [EMAIL PROTECTED],7/[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0
    >
    > and i can mount it as fat using
    > mount -F pcfs /devices/[EMAIL PROTECTED],0/pci1019,[EMAIL 
PROTECTED],7/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:r /mnt/

    Look at prtconf:

                 pci1022,7464, instance #0 (driver name: ohci)
                     storage, instance #0 (driver name: scsa2usb)
                         disk, instance #2 (driver name: sd)

    .../[EMAIL PROTECTED],0 corresponds to scsa2usb - USB SCSA HBA (nexus) 
driver. scsa2usb
    does not create mountable block devices.

    .../[EMAIL PROTECTED]/[EMAIL PROTECTED],0 corresponds to sd - common SCSI 
target driver. sd creates
    block devices (minor nodes) that can be mounted.


It is these devices I'm interested in. I've to list all possible nodes out to 
stdout, so they can be checked by a script for volume 'BELENIX'. If it finds 
one, It'll mount the files on it. I'm relying completely on libdevinfo to get 
to these, as these are the very initial stages in the boot up.

Regards
Anil
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to