Module Name:    src
Committed By:   reinoud
Date:           Sun Aug 25 14:13:47 UTC 2013

Modified Files:
        src/sbin/newfs_udf: udf_write.c

Log Message:
Add the blockingnr determination for the -rom versions


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sbin/newfs_udf/udf_write.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/newfs_udf/udf_write.c
diff -u src/sbin/newfs_udf/udf_write.c:1.7 src/sbin/newfs_udf/udf_write.c:1.8
--- src/sbin/newfs_udf/udf_write.c:1.7	Tue Aug  6 08:18:08 2013
+++ src/sbin/newfs_udf/udf_write.c	Sun Aug 25 14:13:47 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_write.c,v 1.7 2013/08/06 08:18:08 reinoud Exp $ */
+/* $NetBSD: udf_write.c,v 1.8 2013/08/25 14:13:47 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008, 2013 Reinoud Zandijk
@@ -30,7 +30,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: udf_write.c,v 1.7 2013/08/06 08:18:08 reinoud Exp $");
+__RCSID("$NetBSD: udf_write.c,v 1.8 2013/08/25 14:13:47 reinoud Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -473,10 +473,12 @@ udf_do_newfs_prefix(void)
 	if (blockingnr <= 1) {
 		/* paranoia on blockingnr */
 		switch (mmc_discinfo.mmc_profile) {
+		case 0x08 : /* CDROM */
 		case 0x09 : /* CD-R    */
 		case 0x0a : /* CD-RW   */
 			blockingnr = 32;	/* UDF requirement */
 			break;
+		case 0x10 : /* DVDROM */
 		case 0x11 : /* DVD-R (DL) */
 		case 0x12 : /* DVD-RAM */
 		case 0x1b : /* DVD+R      */
@@ -485,6 +487,7 @@ udf_do_newfs_prefix(void)
 		case 0x14 : /* DVD-RW sequential */
 			blockingnr = 16;	/* SCSI definition */
 			break;
+		case 0x40 : /* BDROM */
 		case 0x41 : /* BD-R Sequential recording (SRM) */
 		case 0x42 : /* BD-R Random recording (RRM) */
 		case 0x43 : /* BD-RE */

Reply via email to