Module Name: src
Committed By: snj
Date: Thu Apr 23 02:22:25 UTC 2009
Modified Files:
src/sys/fs/udf [netbsd-5]: udf_allocation.c
Log Message:
Pull up following revision(s) (requested by reinoud in ticket #716):
sys/fs/udf/udf_allocation.c: revision 1.21
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.18.4.1 -r1.18.4.2 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.18.4.1 src/sys/fs/udf/udf_allocation.c:1.18.4.2
--- src/sys/fs/udf/udf_allocation.c:1.18.4.1 Tue Mar 31 23:06:13 2009
+++ src/sys/fs/udf/udf_allocation.c Thu Apr 23 02:22:25 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_allocation.c,v 1.18.4.1 2009/03/31 23:06:13 snj Exp $ */
+/* $NetBSD: udf_allocation.c,v 1.18.4.2 2009/04/23 02:22:25 snj 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.18.4.1 2009/03/31 23:06:13 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.18.4.2 2009/04/23 02:22:25 snj 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 "