Module Name:    src
Committed By:   reinoud
Date:           Tue Apr 21 16:19:00 UTC 2009

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

Log Message:
Fix endian related bug when using discs with a meta-data partition on
big-endian machines.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/fs/udf/udf_allocation.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_allocation.c
diff -u src/sys/fs/udf/udf_allocation.c:1.20 src/sys/fs/udf/udf_allocation.c:1.21
--- src/sys/fs/udf/udf_allocation.c:1.20	Wed Mar 25 20:04:52 2009
+++ src/sys/fs/udf/udf_allocation.c	Tue Apr 21 16:19:00 2009
@@ -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 <sys/cdefs.h>
 #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 @@
 		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 "

Reply via email to