Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/newfs_udf Add the blockingnr determination for the -rom...



details:   https://anonhg.NetBSD.org/src/rev/8404188631bd
branches:  trunk
changeset: 789600:8404188631bd
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sun Aug 25 14:13:47 2013 +0000

description:
Add the blockingnr determination for the -rom versions

diffstat:

 sbin/newfs_udf/udf_write.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r 1fae0bd1a10e -r 8404188631bd sbin/newfs_udf/udf_write.c
--- a/sbin/newfs_udf/udf_write.c        Sun Aug 25 08:46:34 2013 +0000
+++ b/sbin/newfs_udf/udf_write.c        Sun Aug 25 14:13:47 2013 +0000
@@ -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 @@
        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 @@
                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 */



Home | Main Index | Thread Index | Old Index