From: Thomas Veerman Date: Tue, 17 Aug 2010 10:02:50 +0000 (+0000) Subject: - Make sure there's space left in the vmnt table for another mount point. X-Git-Tag: v3.1.8~69 X-Git-Url: http://zhaoyanbai.com/repos/nslookup.html?a=commitdiff_plain;h=c8cfcab5db8a11d47284d9e89049cba1cfc15f1a;p=minix.git - Make sure there's space left in the vmnt table for another mount point. - Increase mount point limit. --- diff --git a/servers/vfs/const.h b/servers/vfs/const.h index 7558909ad..0c4de2dd6 100644 --- a/servers/vfs/const.h +++ b/servers/vfs/const.h @@ -1,7 +1,7 @@ /* Tables sizes */ #define NR_FILPS 512 /* # slots in filp table */ #define NR_LOCKS 8 /* # slots in the file locking table */ -#define NR_MNTS 8 /* # slots in mount table */ +#define NR_MNTS 16 /* # slots in mount table */ #define NR_VNODES 512 /* # slots in vnode table */ #define NR_NONEDEVS NR_MNTS /* # slots in nonedev bitmap */ diff --git a/servers/vfs/mount.c b/servers/vfs/mount.c index 9cddb884e..6a731a5cc 100644 --- a/servers/vfs/mount.c +++ b/servers/vfs/mount.c @@ -242,6 +242,9 @@ PRIVATE int mount_fs(endpoint_t fs_e) if (nodev) alloc_nonedev(dev); /* Make the allocation final */ return(OK); + } else if (vmp == NULL) { + /* No free slot available, bail out */ + return(ENOMEM); } /* Fetch the name of the mountpoint */