/[gentoo-x86]/sys-fs/udftools/files/udftools-1.0.0b-bigendian.patch
Gentoo

Contents of /sys-fs/udftools/files/udftools-1.0.0b-bigendian.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 22 16:27:57 2011 UTC (2 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -0 lines
Depend on readline since we use it #395623 by Maxim Kammerer.  Clean up ebuild/patches while we are here.

(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)

1 http://bugs.gentoo.org/120245
2
3 BE fix
4
5 ===================================================================
6 RCS file: /cvsroot/linux-udf/udftools/mkudffs/mkudffs.c,v
7 retrieving revision 1.3
8 retrieving revision 1.4
9 diff -u -r1.3 -r1.4
10 --- linux-udf/udftools/mkudffs/mkudffs.c 2004/02/23 03:35:33 1.3
11 +++ linux-udf/udftools/mkudffs/mkudffs.c 2004/03/02 02:09:39 1.4
12 @@ -250,14 +250,14 @@
13 if (size % offsets[PSPACE_SIZE])
14 size -= (size % offsets[PSPACE_SIZE]);
15 set_extent(disc, PSPACE, start, size);
16 - for (i=0; i<disc->udf_lvd[0]->numPartitionMaps; i++)
17 + for (i=0; i<le32_to_cpu(disc->udf_lvd[0]->numPartitionMaps); i++)
18 {
19 if (i == 1)
20 disc->udf_lvid->freeSpaceTable[i] = cpu_to_le32(0xFFFFFFFF);
21 else
22 disc->udf_lvid->freeSpaceTable[i] = cpu_to_le32(size);
23 }
24 - for (j=0; j<disc->udf_lvd[0]->numPartitionMaps; j++)
25 + for (j=0; j<le32_to_cpu(disc->udf_lvd[0]->numPartitionMaps); j++)
26 {
27 if (j == 1)
28 disc->udf_lvid->sizeTable[i+j] = cpu_to_le32(0xFFFFFFFF);

  ViewVC Help
Powered by ViewVC 1.1.20