Module Name:    src
Committed By:   reinoud
Date:           Sat Jan 22 14:51:43 UTC 2011

Modified Files:
        src/sys/fs/udf: udf_subr.c

Log Message:
Lookup the physical partition backing up the logical one when searching for the
metadata partition overlap for BD-R.

Fixes a kernel panic on mounting a BD-R formatted with UDF 2.60


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/fs/udf/udf_subr.c

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

Modified files:

Index: src/sys/fs/udf/udf_subr.c
diff -u src/sys/fs/udf/udf_subr.c:1.111 src/sys/fs/udf/udf_subr.c:1.112
--- src/sys/fs/udf/udf_subr.c:1.111	Fri Jan 21 20:36:53 2011
+++ src/sys/fs/udf/udf_subr.c	Sat Jan 22 14:51:43 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.111 2011/01/21 20:36:53 reinoud Exp $ */
+/* $NetBSD: udf_subr.c,v 1.112 2011/01/22 14:51:43 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.111 2011/01/21 20:36:53 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.112 2011/01/22 14:51:43 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -445,7 +445,7 @@
 
 	/* get our base partition extent */
 	KASSERT(ump->node_part == ump->fids_part);
-	part = ump->partitions[ump->node_part];
+	part = ump->partitions[ump->vtop[ump->node_part]];
 	phys_part_start = udf_rw32(part->start_loc);
 	phys_part_end   = phys_part_start + udf_rw32(part->part_len);
 

Reply via email to