[U-Boot] [PATCH 7/7] FAT: Make it possible to read from any file position

Mike Frysinger vapier at gentoo.org
Fri Jul 20 00:44:52 CEST 2012


On Thursday 19 July 2012 18:03:06 Benoît Thébaudeau wrote:
> --- u-boot-66714b1.orig/fs/fat/fat.c
> +++ u-boot-66714b1/fs/fat/fat.c
> 
> +__u8 get_contents_vfatname_block[MAX_CLUSTSIZE]
> +	__aligned(ARCH_DMA_MINALIGN);

is there any reason for this to be exported ?  could you mark it static ?

>  static long
> -get_contents (fsdata *mydata, dir_entry *dentptr, __u8 *buffer,
> -	      unsigned long maxsize)
> +get_contents (fsdata *mydata, dir_entry *dentptr, unsigned long pos,

delete the space before the "("

>  long
> -do_fat_read (const char *filename, void *buffer, unsigned long maxsize,
> -	     int dols)
> +do_fat_read_at (const char *filename, unsigned long pos, void *buffer,

delete the space before the "("

> +long
> +do_fat_read (const char *filename, void *buffer, unsigned long maxsize,

no spaces before that "("
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120719/ced33472/attachment.pgp>


More information about the U-Boot mailing list