View Single Post
Old 27 January 2017, 20:59   #2
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,481
In hardfile_win32.cpp there is:
Code:
if (devDesc->DeviceType != INQ_DASD && devDesc->DeviceType != INQ_ROMD && devDesc->DeviceType != INQ_OPTD) {
    write_log (_T("not a direct access device, ignored (type=%d)\n"), devDesc->DeviceType);
    return -2;
}
In blkdev.h:
Code:
#define	INQ_DASD	0x00		/* Direct-access device (disk) */
#define	INQ_SEQD	0x01		/* Sequential-access device (tape) */
#define	INQ_PRTD	0x02 		/* Printer device */
#define	INQ_PROCD	0x03 		/* Processor device */
#define	INQ_OPTD	0x04		/* Write once device (optical disk) */
#define	INQ_WORM	0x04		/* Write once device (optical disk) */
#define	INQ_ROMD	0x05		/* CD-ROM device */
#define	INQ_SCAN	0x06		/* Scanner device */
#define	INQ_OMEM	0x07		/* Optical Memory device */
So if you could check for INQ_OMEM too that should fix the problem:
Code:
if (devDesc->DeviceType != INQ_DASD && devDesc->DeviceType != INQ_ROMD && devDesc->DeviceType != INQ_OPTD && devDesc->DeviceType != INQ_OMEM)) {
    write_log (_T("not a direct access device, ignored (type=%d)\n"), devDesc->DeviceType);
    return -2;
}
mark_k is offline  
 
Page generated in 0.05104 seconds with 9 queries