allbery@ncoast.UUCP (06/29/87)
Sigh. I posted a silicon disk driver here just ten days ago (see the
article to which this is a followup) and already I have to post
patches.
This patch, to memdisk.c, fixes:
- misspelled ifdef, which broke the mtXinu 4.3+NFS mount.h
inclusion, and
- some systems call the mount table mounttab, some just mount:
a define is added for use by unit_mounted.
Feed this to patch, or apply by hand (there's not much to do).
*** memdisk.c.old Sat Jun 27 04:38:37 1987
--- memdisk.c Fri Jun 19 19:12:54 1987
***************
*** 37,50 ****
#include "../h/time.h"
#include "../h/kernel.h"
#include "../h/errno.h"
! #ifdef UFS_UFS_MOUNT
#include "../ufs/ufsmount.h"
#endif
#ifdef H_MOUNT
#include "../h/mount.h"
#endif
#ifdef UFS_MOUNT
#include "../ufs/mount.h"
#endif
int max_md_size = (2048+512) * 1024; /* 2.5Mb */
--- 37,53 ----
#include "../h/time.h"
#include "../h/kernel.h"
#include "../h/errno.h"
! #ifdef UFS_UFSMOUNT
#include "../ufs/ufsmount.h"
+ #define MOUNTTABLE mounttab
#endif
#ifdef H_MOUNT
#include "../h/mount.h"
+ #define MOUNTTABLE mount
#endif
#ifdef UFS_MOUNT
#include "../ufs/mount.h"
+ #define MOUNTTABLE mounttab
#endif
int max_md_size = (2048+512) * 1024; /* 2.5Mb */
***************
*** 244,250 ****
dev_t dev;
s = spl4(); /* as long as ipl > 0, (u)mounts can't happen */
! for (mp= &mounttab[0];mp<&mounttab[NMOUNT];mp++)
{ if (mp->m_bufp != NULL)
{ dev = mp->m_dev;
if ( (bdevsw[major(dev)].d_strategy == memdiskstrategy) &&
--- 247,253 ----
dev_t dev;
s = spl4(); /* as long as ipl > 0, (u)mounts can't happen */
! for (mp= &MOUNTTABLE[0];mp<&MOUNTTABLE[NMOUNT];mp++)
{ if (mp->m_bufp != NULL)
{ dev = mp->m_dev;
if ( (bdevsw[major(dev)].d_strategy == memdiskstrategy) &&
der Mouse
(mouse@mcgill-vision.uucp)