From: David van Moolenbroek Date: Fri, 3 Dec 2010 13:19:15 +0000 (+0000) Subject: RS: do not restart file systems X-Git-Tag: v3.2.0~726 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-dsfromkey.html?a=commitdiff_plain;h=6bf3c91a0ab52f5c0d3f3a3669a7600675530ec4;p=minix.git RS: do not restart file systems --- diff --git a/servers/rs/manager.c b/servers/rs/manager.c index 4897e8d1a..9dfe41476 100644 --- a/servers/rs/manager.c +++ b/servers/rs/manager.c @@ -1050,6 +1050,15 @@ PUBLIC void restart_service(struct rproc *rp) /* See if a late reply has to be sent. */ late_reply(rp, OK); + /* This hack disables restarting of file servers, which at the moment always + * cause VFS to hang indefinitely. As soon as VFS no longer blocks on calls + * to file servers, this exception can be removed again. + */ + if (!strncmp(rp->r_pub->label, "fs_", 3)) { + kill_service(rp, "file servers cannot be restarted yet", ENOSYS); + return; + } + /* Run a recovery script if available. */ if (rp->r_script[0] != '\0') { run_script(rp);