Hi,
I 've noticed that cdrtools 2.01 have problems when using udev.
When one does cdrecord -scanbus dev=ATAPI having a disc in /dev/hda and an cdr
in /dev/hdc, cdrecord exits with error, because it can't find /dev/hdb.
The attached patch should fix this behaviour.
Let me know if anyone has probs with this patch.
Writen by Tsarouchas Georgios
Description: CDRtools 2.01 scanbus Patch
diff -ruNd cdrtools-2.01/libscg/scsi-linux-ata.c cdrtools-2.01-hacked/libscg/scsi-linux-ata.c
--- cdrtools-2.01/libscg/scsi-linux-ata.c 2004-06-12 12:48:12.000000000 +0200
+++ cdrtools-2.01-hacked/libscg/scsi-linux-ata.c 2005-10-07 14:00:34.990576440 +0200
@@ -363,7 +363,12 @@
}
return (-2);
} else if (errno == ENOENT || errno == ENODEV) {
- break;
+ if (scgp->debug > 4) {
+ js_fprintf((FILE *) scgp->errfile,
+ "device %s doesn't exist. Probably udev filesystem\n",
+ device);
+ }
+ close(device);
}
} else {
if (sg_amapdev(scgp, f, device, &schilly_bus, &target, &lun)) {
@@ -386,7 +391,12 @@
}
return (-2);
} else if (errno == ENOENT || errno == ENODEV) {
- break;
+ if (scgp->debug > 4) {
+ js_fprintf((FILE *) scgp->errfile,
+ "device %s doesn't exist. Probably udev filesystem\n",
+ device);
+ }
+ close(device);
}
} else {
/* ugly hack, make better, when you can. Alex */
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page