Hi All,
I had an issue when reading files from a yaffs2 file system with TI
dspbridge driver, the problem was that I could not load any base image
if it was in yaffs2, I narrow the failure to llseek function which the
driver uses and the filesystem does not provide. I also read that
yaffs will take the generic from the kernel but it wasn't and I was
getting some crashes, so I decided to include the llseek directly to
yaffs.
Could anyone provide some feedback on this patch?
Thanks,
- omar
---
fs/yaffs2/yaffs_fs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c index
ab28e09..67929c0 100644
--- a/fs/yaffs2/yaffs_fs.c
+++ b/fs/yaffs2/yaffs_fs.c
@@ -249,6 +249,7 @@ static struct file_operations yaffs_file_operations = {
.fsync = yaffs_sync_object,
.splice_read = generic_file_splice_read,
.splice_write = generic_file_splice_write,
+ .llseek = generic_file_llseek,
};
#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
--
1.5.4.3