2000-12-15 00:40:58

by Bill Nottingham

[permalink] [raw]
Subject: PATCH: fix FAT32 filesystems on 64-bit platforms

This fixes FAT32 on 64-bit platforms (notably, IA-64 and Alpha);
without this you can't mount any FAT32 filesystems. A similar patch
is already in 2.2.18.

Bill


Attachments:
(No filename) (161.00 B)
linux-2.4.0-test12-vfat.patch (1.57 kB)
Download all attachments

2000-12-15 07:38:52

by Albert D. Cahalan

[permalink] [raw]
Subject: Re: PATCH: fix FAT32 filesystems on 64-bit platforms

> This fixes FAT32 on 64-bit platforms (notably, IA-64 and Alpha);
> without this you can't mount any FAT32 filesystems. A similar patch
> is already in 2.2.18.
...
> - next = CF_LE_L(((unsigned long *) bh->b_data)[(first &
> + next = CF_LE_L(((__u32 *) bh->b_data)[(first &
...
> - next = CF_LE_W(((unsigned short *) bh->b_data)[(first &
> + next = CF_LE_W(((__u16 *) bh->b_data)[(first &


These macros really ought to be replaced with the standard
le32_to_cpu() and le16_to_cpu() ones.