[uml-devel] [patch 1/4] hostfs - uml: set .sendfile to generic_file_sendfile
From: <hidden>
Date: 2004-11-19 01:12:03
Also in:
lkml
From: Paolo 'Blaisorblade' Giarrusso <redacted> Cc: Alexander Viro <redacted> Make hostfs use the generic sendfile implementation. As you can see, the problem was simply that it was forgot to set hostfs_file_fops.sendfile to point to it. I've got one report that it works, and since hostfs uses the VFS cache it seems reasonable. However, can somebody confirm this? Also, is there anything spotting similar treatment? Signed-off-by: Paolo 'Blaisorblade' Giarrusso <redacted> --- linux-2.6.10-rc-paolo/fs/hostfs/hostfs_kern.c | 1 + 1 files changed, 1 insertion(+) diff -puN fs/hostfs/hostfs_kern.c~uml-hostfs-add-sendfile fs/hostfs/hostfs_kern.c
--- linux-2.6.10-rc/fs/hostfs/hostfs_kern.c~uml-hostfs-add-sendfile 2004-11-18 14:32:39.436315536 +0100
+++ linux-2.6.10-rc-paolo/fs/hostfs/hostfs_kern.c 2004-11-18 14:32:39.439315080 +0100@@ -393,6 +393,7 @@ int hostfs_fsync(struct file *file, stru static struct file_operations hostfs_file_fops = { .llseek = generic_file_llseek, .read = generic_file_read, + .sendfile = generic_file_sendfile, .write = generic_file_write, .mmap = generic_file_mmap, .open = hostfs_file_open,
_ ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel