From 91d6e7806080474857d3e01df40760dac76d9297 Mon Sep 17 00:00:00 2001 From: reinoud Date: Tue, 21 Apr 2009 16:19:00 +0000 Subject: [PATCH] Fix endian related bug when using discs with a meta-data partition on big-endian machines. --- sys/fs/udf/udf_allocation.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/fs/udf/udf_allocation.c b/sys/fs/udf/udf_allocation.c index c822012dc13e..33703552f922 100644 --- a/sys/fs/udf/udf_allocation.c +++ b/sys/fs/udf/udf_allocation.c @@ -1,4 +1,4 @@ -/* $NetBSD: udf_allocation.c,v 1.20 2009/03/25 20:04:52 reinoud Exp $ */ +/* $NetBSD: udf_allocation.c,v 1.21 2009/04/21 16:19:00 reinoud Exp $ */ /* * Copyright (c) 2006, 2008 Reinoud Zandijk @@ -28,7 +28,7 @@ #include #ifndef lint -__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.20 2009/03/25 20:04:52 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.21 2009/04/21 16:19:00 reinoud Exp $"); #endif /* not lint */ @@ -507,11 +507,8 @@ translate_again: lb_num = udf_rw32(s_icb_loc.loc.lb_num); vpart = udf_rw16(s_icb_loc.loc.part_num); lb_num += (ext_offset + lb_size -1) / lb_size; - len -= ext_offset; ext_offset = 0; - flags = UDF_EXT_FLAGS(s_icb_loc.len); - UDF_UNLOCK_NODE(ump->metadata_node, 0); if (flags != UDF_EXT_ALLOCATED) { DPRINTF(TRANSLATE, ("Metadata partition translation "