[PATCH 2/2] fs: add pread and pwrite functions

Sascha Hauer s.hauer at pengutronix.de
Tue Feb 19 14:33:39 EST 2013


Hi Alexander,

On Sun, Feb 17, 2013 at 10:05:01PM +0100, Alexander Aring wrote:
> Add pread and pwrite functions.
> 
> Split read and write functions to save some space.
> The functions pread and pwrite saves and sets the file
> position to a given offset and restore them afterwards.
> 
> Signed-off-by: Alexander Aring <alex.aring at gmail.com>

This currently breaks compilation of the nandtest command. We have two
options: Either rename pread/pwrite functions in the nandtest command or
just drop the static versions in the nandtest command.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list