- Make sure there's space left in the vmnt table for another mount point.

- Increase mount point limit.
This commit is contained in:
Thomas Veerman 2010-08-17 10:02:50 +00:00
parent 551374c228
commit c8cfcab5db
2 changed files with 4 additions and 1 deletions

View file

@ -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 */

View file

@ -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 */