patch-2.3.48 linux/fs/read_write.c

Next file: linux/fs/romfs/inode.c
Previous file: linux/fs/qnx4/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/read_write.c linux/fs/read_write.c
@@ -13,6 +13,16 @@
 
 #include <asm/uaccess.h>
 
+struct file_operations generic_ro_fops = {
+	read:		generic_file_read,
+	mmap:		generic_file_mmap,
+};
+
+ssize_t generic_read_dir(struct file *filp, char *buf, size_t siz, loff_t *ppos)
+{
+	return -EISDIR;
+}
+
 loff_t default_llseek(struct file *file, loff_t offset, int origin)
 {
 	long long retval;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)