Comment 1 for bug 1010564

Revision history for this message
Hark (ubuntu-komkommerkom) wrote :

I am not a C coder, but I think adding a line to the validdisk[] array in photosyst.c should solve the problem. It is now

validdisk[] = {
        { "^ram[0-9][0-9]*$", {0}, (void *)0, NONTYPE, },
        { "^loop[0-9][0-9]*$", {0}, (void *)0, NONTYPE, },
        { "^sd[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "^dm-[0-9][0-9]*$", {0}, lvmmapname, LVMTYPE, },
        { "^md[0-9][0-9]*$", {0}, nullmodname, MDDTYPE, },
        { "^hd[a-z]$", {0}, nullmodname, DSKTYPE, },
        { "^rd/c[0-9][0-9]*d[0-9][0-9]*$", {0}, nullmodname, DSKTYPE, },
        { "^cciss/c[0-9][0-9]*d[0-9][0-9]*$", {0}, nullmodname, DSKTYPE, },
        { "^fio[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "/host.*/bus.*/target.*/lun.*/disc", {0}, abbrevname1, DSKTYPE, },
        { "^xvd[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "^dasd[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "^mmcblk[0-9][0-9]*$", {0}, nullmodname, DSKTYPE, },
};

As you can see there is no line for ^vd[a-z] block devices.