]> Zhao Yanbai Git Server - minix.git/commitdiff
filesystems: return ENOSYS for REQ_PEEK 14/414/6
authorBen Gras <ben@minix3.org>
Wed, 20 Mar 2013 17:04:39 +0000 (17:04 +0000)
committerBen Gras <ben@minix3.org>
Wed, 24 Apr 2013 10:18:10 +0000 (10:18 +0000)
The filesystems already implement REQ_PEEK, but do not fully
use the new filesystem cache code yet. (Because it isn't committed
yet..) REQ_PEEK should be disabled for them until they do.

This indicates to VFS that they are not annotating their cache
blocks (in VM) with inode number/offset info, and therefore mmap()
shouldn't succeed on any of their files. (Most importantly exec()
won't fallback elegantly otherwise.)

Change-Id: Ic57ee422864b4bbc031eadba32973270907b02fd

servers/ext2/table.c
servers/iso9660fs/table.c
servers/mfs/table.c

index 2ebfcbce283a51b42c11136c369716c61674a004..af77d746bbeee42ff2d41b728bd8fb2adaaf98bb 100644 (file)
@@ -46,5 +46,11 @@ int (*fs_call_vec[])(void) = {
     fs_rdlink,          /* 30  */
     fs_getdents,        /* 31  */
     fs_statvfs,                /* 32  */
+#if 0
     fs_readwrite,       /* 33  */
+    no_sys,
+#else
+    no_sys,
+    no_sys,
+#endif
 };
index e6cb5d387a4f36db31bac5f5ce85f058c9c69b99..12ac2f79a5f6bcc3e9805405b118279a20a3dac9 100644 (file)
@@ -41,5 +41,11 @@ int (*fs_call_vec[])(void) = {
   no_sys,                      /* 30: not used */
   fs_getdents,                 /* 31 */
   fs_statvfs,                  /* 32 */
-  fs_read                      /* 33 */
+#if 0
+  fs_read,                     /* 33 */
+  no_sys,
+#else
+  no_sys,
+  no_sys,
+#endif
 };
index d54c91558151715f9ed2722e5eba1e600eff66ed..8d19c3b8abd905d5cfc495ebec4b252f29ab5540 100644 (file)
@@ -44,6 +44,6 @@ int (*fs_call_vec[])(void) = {
         fs_rdlink,         /* 30  */
         fs_getdents,       /* 31  */
         fs_statvfs,         /* 32  */
-        fs_readwrite,       /* 33  */
+        no_sys,             /* 33  */          /* peek not supported */
 };