[Libsysio-commit] HEAD: libsysio/src mount.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-10-19 22:24:00
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9909 Modified Files: mount.c Log Message: Added the tiniest bit of paranoia to _sysio_do_mount. Basically, just want to make sure we aren't somehow, strangely, mounting on a pnode that is already mounted on. I can't see how this could happen but I like explicit failures instead of weird behavior. Index: mount.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/mount.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -w -b -B -p -r1.19 -r1.20 --- mount.c 19 Oct 2004 15:32:38 -0000 1.19 +++ mount.c 19 Oct 2004 22:23:50 -0000 1.20 @@ -187,6 +187,7 @@ _sysio_do_mount(struct filesys *fs, */ mnt->mnt_covers = tocover = mnt->mnt_root; } + assert(!tocover->p_cover); tocover->p_cover = mnt->mnt_root; LIST_INSERT_HEAD(&mounts, mnt, mnt_link); |