Fix endian related bug when using discs with a meta-data partition on
big-endian machines.
This commit is contained in:
parent
a25308e261
commit
91d6e78060
@ -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 @@ 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 "
|
||||
|
Loading…
Reference in New Issue
Block a user