Re: [U-Boot] [PATCH 3/4 v2] UBIFS: Change ubifsload to not read beyond the requested size

2010-12-03 Thread Stefan Roese
On Monday 01 November 2010 17:28:00 Stefan Roese wrote: Until now ubifsload pads the destination with 0 up to a multiple of UBIFS_BLOCK_SIZE (4KiB) while reading a file to memory. This patch changes this behaviour to only read to the requested length. This is either the file length or the

Re: [U-Boot] [PATCH 3/4 v2] UBIFS: Change ubifsload to not read beyond the requested size

2010-12-02 Thread Stefan Roese
Hi Wolfgang, sorry for the late reply. I just stumbled again over this mail. On Monday 01 November 2010 20:05:00 Wolfgang Denk wrote: I still wonder what's the logic behind this code. When will read_block() return -ENOENT (aka No such file or directory) ? What are the other possible error

[U-Boot] [PATCH 3/4 v2] UBIFS: Change ubifsload to not read beyond the requested size

2010-11-01 Thread Stefan Roese
Until now ubifsload pads the destination with 0 up to a multiple of UBIFS_BLOCK_SIZE (4KiB) while reading a file to memory. This patch changes this behaviour to only read to the requested length. This is either the file length or the length/size provided as parameter to the ubifsload command.