]> Zhao Yanbai Git Server - minix.git/commitdiff
Remove VM_VFS_REPLY from VM_BASIC_CALLS 24/724/2
authorDavid van Moolenbroek <david@minix3.org>
Wed, 7 Aug 2013 12:14:40 +0000 (14:14 +0200)
committerGerrit Code Review <gerrit@gerrit>
Thu, 8 Aug 2013 21:23:13 +0000 (23:23 +0200)
Change-Id: I0a03f1c95fd7ef87cecb01a028f59696a8447738

commands/service/parse.c
etc/system.conf
include/minix/com.h
servers/vm/vfs.c

index 2808da172cd9befd99003cf190d1bf0b95f75c29..f7f7bebdbdb5729e73f4252466eb670e578c3760 100644 (file)
@@ -735,6 +735,7 @@ struct
        { "MAPCACHEPAGE",       VM_MAPCACHEPAGE },
        { "SETCACHEPAGE",       VM_SETCACHEPAGE },
        { "VFS_MMAP",           VM_VFS_MMAP },
+       { "VFS_REPLY",          VM_VFS_REPLY },
        { NULL,                 0 },
 };
 
index 4d0637d1b8e68a37eb6efa97c828c8ae6632130d..74ec801d1b43faf07515d7c6630034816d5d8684 100644 (file)
@@ -95,7 +95,9 @@ service vfs
                MEMSET
                ;
        vm      PROCCTL
-               VFS_MMAP;
+               VFS_MMAP
+               VFS_REPLY
+               ;
        io      NONE;           # No I/O range allowed
        irq     NONE;           # No IRQ allowed
        sigmgr          rs;     # Signal manager is RS
index a6589ca78d21c5de0421c5f498e37d3865b4b055..d1e4752de2d5925a41223bbbdf4a9dc784e8d6e6 100644 (file)
 
 /* Basic vm calls allowed to every process. */
 #define VM_BASIC_CALLS \
-    VM_MMAP, VM_VFS_REPLY, VM_MUNMAP, VM_MAP_PHYS, VM_UNMAP_PHYS, \
-    VM_INFO, VM_GETRUSAGE
+    VM_MMAP, VM_MUNMAP, VM_MAP_PHYS, VM_UNMAP_PHYS, VM_INFO, VM_GETRUSAGE
 
 /*===========================================================================*
  *                Messages for IPC server                                   *
index 6551d41a1e2373ec9e3753ad7a6634a316ed5fce..a68bfa3af9c5ef3ef2ac23110f0d067df2171f00 100644 (file)
@@ -115,8 +115,6 @@ int do_vfs_reply(message *m)
        void *cbarg;
        int n;
        struct vmproc *vmp;
-       if(m->m_source != VFS_PROC_NR)
-               return ENOSYS;
 
        assert(active);
        assert(active->req_id == m->VMV_REQID);