Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf Lookup the physical partition backing up the logi...



details:   https://anonhg.NetBSD.org/src/rev/889683e7a700
branches:  trunk
changeset: 761264:889683e7a700
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sat Jan 22 14:51:43 2011 +0000

description:
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

diffstat:

 sys/fs/udf/udf_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6e3dde4320e2 -r 889683e7a700 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c     Sat Jan 22 14:47:21 2011 +0000
+++ b/sys/fs/udf/udf_subr.c     Sat Jan 22 14:51:43 2011 +0000
@@ -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);
 



Home | Main Index | Thread Index | Old Index