[OpenBIOS] [PATCH 6/10] Wrapped HFS+ incorrectly recognized

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Aug 10 12:56:10 CEST 2011


On 09/08/11 22:54, William Hahne wrote:

> The code for checking for a wrapped HFS+ volume looks at the wrong offset.
>
> Index: fs/hfsplus/hfsp_volume.c
> ===================================================================
> --- fs/hfsplus/hfsp_volume.c (revision 1041)
> +++ fs/hfsplus/hfsp_volume.c (working copy)
> @@ -302,7 +302,7 @@
> os_read(fd, vol, 2, HFSP_BLOCKSZ_BITS);
> if (__be16_to_cpu(vol[0]) == HFS_VOLHEAD_SIG &&
> - __be16_to_cpu(vol[0x7c]) == HFSP_VOLHEAD_SIG) {
> + __be16_to_cpu(vol[0x3e]) == HFSP_VOLHEAD_SIG) {
> ret = -1;
> } else if (__be16_to_cpu(vol[0]) == HFSP_VOLHEAD_SIG) {
> ret = -1;

Same comment as for patch 2/10.


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list