stime messages to NONE of an unmounted filesystem.
last_login_fs_e = NONE;
/* Initialize vmnt table */
- for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; ++vmp)
+ for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; ++vmp) {
vmp->m_dev = NO_DEV;
+ vmp->m_fs_e = NONE;
+ }
vmp = &vmnt[0];
/* Send new time for all FS processes */
for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; ++vmp) {
- if (vmp->m_fs_e)
+ if (vmp->m_fs_e != NONE)
req_stime(vmp->m_fs_e, boottime);
}
/* No need to report status to PM */
/* Send new time for all FS processes */
for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; ++vmp) {
- if (vmp->m_fs_e) req_stime(vmp->m_fs_e, boottime);
+ if (vmp->m_fs_e != NONE) req_stime(vmp->m_fs_e, boottime);
}
return OK;
* Jul 2006 (Balazs Gerofi)
*/
+#include <minix/com.h>
+
#include "fs.h"
#include "vmnt.h"
PUBLIC struct vmnt *find_vmnt(int fs_e)
{
struct vmnt *vp;
+ if(fs_e == NONE)
+ panic(__FILE__, "find_vmnt: find for NONE", NO_NUM);
for (vp = &vmnt[0]; vp < &vmnt[NR_MNTS]; ++vp) {
if (vp->m_fs_e == fs_e) return vp;
}