From: David van Moolenbroek Date: Wed, 7 Aug 2013 12:14:40 +0000 (+0200) Subject: Remove VM_VFS_REPLY from VM_BASIC_CALLS X-Git-Tag: v3.3.0~853 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F724%2F2;p=minix.git Remove VM_VFS_REPLY from VM_BASIC_CALLS Change-Id: I0a03f1c95fd7ef87cecb01a028f59696a8447738 --- diff --git a/commands/service/parse.c b/commands/service/parse.c index 2808da172..f7f7bebdb 100644 --- a/commands/service/parse.c +++ b/commands/service/parse.c @@ -735,6 +735,7 @@ struct { "MAPCACHEPAGE", VM_MAPCACHEPAGE }, { "SETCACHEPAGE", VM_SETCACHEPAGE }, { "VFS_MMAP", VM_VFS_MMAP }, + { "VFS_REPLY", VM_VFS_REPLY }, { NULL, 0 }, }; diff --git a/etc/system.conf b/etc/system.conf index 4d0637d1b..74ec801d1 100644 --- a/etc/system.conf +++ b/etc/system.conf @@ -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 diff --git a/include/minix/com.h b/include/minix/com.h index a6589ca78..d1e4752de 100644 --- a/include/minix/com.h +++ b/include/minix/com.h @@ -1096,8 +1096,7 @@ /* 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 * diff --git a/servers/vm/vfs.c b/servers/vm/vfs.c index 6551d41a1..a68bfa3af 100644 --- a/servers/vm/vfs.c +++ b/servers/vm/vfs.c @@ -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);