Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1Author: Corey Wright <undefined@pobox.com>
2Description: Adds support for DVD-ROM medium-type.
3
4Index: dvdisaster/scsi-layer.c
5===================================================================
6--- dvdisaster.orig/scsi-layer.c 2012-03-06 11:10:17.147044691 +0900
7+++ dvdisaster/scsi-layer.c 2012-03-06 11:10:30.927044292 +0900
8@@ -913,6 +913,11 @@
9 break;
10 }
11
12+ if(layer_type & 0x01)
13+ { dh->typeDescr = g_strdup("DVD-ROM");
14+ break;
15+ }
16+
17 if(layer_type & 0x06) /* strange thing: (re-)writeable but neither plus nor dash */
18 { dh->typeDescr = g_strdup("DVD-ROM (fake)");
19 dh->subType = DVD;