Thread View: comp.bugs.2bsd
1 messages
1 total messages
Started by Steven M. Schultz
Wed, 22 Mar 1989 23:07
multiple mounts on a directory + FIX
Author: Steven M. Schultz
Date: Wed, 22 Mar 1989 23:07
Date: Wed, 22 Mar 1989 23:07
36 lines
1277 bytes
1277 bytes
Description:
The same directory can be mounted on twice using different
devices. This causes confusion and possibly problems later on
when an umount is done.
Repeat-By:
/etc/mount /dev/ra0h /usr
/etc/mount /dev/ra1h /usr
note that no error is issued,
Fix:
Apply the following patch to /usr/src/sys/sys/ufs_mount.c, it is
safe to do this because the mount of the root filesystem does
not go thru the smount() routine.
*** ufs_mount.c.ol Wed Mar 22 14:13:34 1989
--- ufs_mount.c Wed Mar 22 14:28:43 1989
***************
*** 52,57 ****
--- 52,62 ----
u.u_error = ENOTDIR;
return;
}
+ if (ip->i_number == ROOTINO) {
+ iput(ip);
+ u.u_error = EBUSY;
+ return;
+ }
fs = mountfs(dev, uap->ronly, ip);
if (fs == 0)
return;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads