From: David van Moolenbroek Date: Thu, 15 Nov 2012 14:15:54 +0000 (+0000) Subject: VFS: do not save device node for new regular files X-Git-Tag: v3.2.1~227 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/pkcs11-keygen.html?a=commitdiff_plain;h=7dd286e6b8a11ecca474ee967e97662242a501fd;p=minix.git VFS: do not save device node for new regular files The VFS/FS protocol does not require the file server to supply a special device node number in response to a REQ_CREATE request, as this call creates only regular files. Therefore, VFS should not erroneously save this piece of information from the REQ_CREATE reply either. --- diff --git a/servers/vfs/request.c b/servers/vfs/request.c index e39979dea..4f724228e 100644 --- a/servers/vfs/request.c +++ b/servers/vfs/request.c @@ -175,7 +175,7 @@ int req_create( res->fsize = m.RES_FILE_SIZE_LO; res->uid = m.RES_UID; res->gid = m.RES_GID; - res->dev = m.RES_DEV; + res->dev = NO_DEV; return(OK); }