Skip to contentSkip to conversation

Fix lseek on fat filesystems.

PATCH Applied Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Sep 17, 2013 – Sep 18, 2013 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix lseek on fat filesystems.

From: Fargier Sylvain <[email protected]>

FILE object was not updated properly when seeking.

---
 fs/fat/fat.c | 1 +
 1 file changed, 1 insertion(+)
fs/fat/fat.c +1 -0
index 871fe4b..15879c4 100644
@@ -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;
 }
 
Signature · 7 lines
1.8.4.rc1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD

From: Fargier Sylvain <[email protected]>

FILE object was not updated properly when seeking.

Applied, thanks

Sascha

Quoted 25 lines
---
 fs/fat/fat.c | 1 +
 1 file changed, 1 insertion(+)
fs/fat/fat.c +1 -0
index 871fe4b..15879c4 100644
@@ -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;
 }
 
Signature · 7 lines
1.8.4.rc1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox