mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] Fix lseek on fat filesystems.
@ 2013-09-17  7:47 Jean-Christophe PLAGNIOL-VILLARD
  2013-09-18  6:46 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-09-17  7:47 UTC (permalink / raw)
  To: barebox; +Cc: Fargier Sylvain

From: Fargier Sylvain <sylvain.fargier@somfy.com>

FILE object was not updated properly when seeking.

Signed-off-by: Fargier Sylvain <sylvain.fargier@somfy.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 fs/fat/fat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 871fe4b..15879c4 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -277,6 +277,7 @@ static loff_t fat_lseek(struct device_d *dev, FILE *f, loff_t pos)
 	if (ret)
 		return ret;
 
+	f->pos = pos;
 	return pos;
 }
 
-- 
1.8.4.rc1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] Fix lseek on fat filesystems.
  2013-09-17  7:47 [PATCH 1/1] Fix lseek on fat filesystems Jean-Christophe PLAGNIOL-VILLARD
@ 2013-09-18  6:46 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-09-18  6:46 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox, Fargier Sylvain

On Tue, Sep 17, 2013 at 09:47:44AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> From: Fargier Sylvain <sylvain.fargier@somfy.com>
> 
> FILE object was not updated properly when seeking.
> 
> Signed-off-by: Fargier Sylvain <sylvain.fargier@somfy.com>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Applied, thanks

Sascha

> ---
>  fs/fat/fat.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/fat/fat.c b/fs/fat/fat.c
> index 871fe4b..15879c4 100644
> --- a/fs/fat/fat.c
> +++ b/fs/fat/fat.c
> @@ -277,6 +277,7 @@ static loff_t fat_lseek(struct device_d *dev, FILE *f, loff_t pos)
>  	if (ret)
>  		return ret;
>  
> +	f->pos = pos;
>  	return pos;
>  }
>  
> -- 
> 1.8.4.rc1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-18  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-17  7:47 [PATCH 1/1] Fix lseek on fat filesystems Jean-Christophe PLAGNIOL-VILLARD
2013-09-18  6:46 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox