.../[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.

If you just want all USB block devices, try this for your dump_minor() routine:

    char *mnp;
    int **prop;

    if ((di_minor_spectype(minor) == S_IFBLK) &&
        (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "usb", prop) >= 0)) {
        if ((mnp = di_devfs_minor_path(minor)) != NULL) {
            printf("/devices%s\n", mnp);
            di_devfs_path_free(mnp);
        }
    }

    return (DI_WALK_CONTINUE);

-Artem.

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to