uimage: fix: add can_lseek_backward and use in uimage_open
Since commit ce0cc7fe we support forward seek on tftpfs. This feature
breaks the condition to check rather we open an uimage over tftp. Since
backward seeking is the problem here, we add the function
can_lseek_backward and check for it instead of the simple lseek.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ed5d71a commit 7c3f8d3663cbee7e406bf949a263ce82f6b34ae8
@Michael Grzeschik Michael Grzeschik authored on 8 Nov 2017
Sascha Hauer committed on 10 Nov 2017
Showing 3 changed files
View
common/uimage.c
View
fs/uimagefs.c
View
include/fs.h