diff options
author | julian <julian@FreeBSD.org> | 1997-08-26 17:17:52 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-08-26 17:17:52 +0000 |
commit | 4ef08431e3258c177c4a081bb0bba2eeef3a3ac3 (patch) | |
tree | 44b4e52132e325ecaf1e520ecba63eb0d1e59d13 /sys/miscfs | |
parent | f8dbb1299d2885228b716331ac68086438dec8f2 (diff) | |
download | FreeBSD-src-4ef08431e3258c177c4a081bb0bba2eeef3a3ac3.zip FreeBSD-src-4ef08431e3258c177c4a081bb0bba2eeef3a3ac3.tar.gz |
two fixes submitted by Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
fixes problems in unmounting and propogation.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index f054c12..4121741 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -2,7 +2,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.36 1997/05/03 21:19:53 joerg Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.37 1997/07/14 04:53:52 julian Exp $ */ #include "opt_devfs.h" @@ -271,6 +271,7 @@ dev_add_name(char *name, dn_p dirnode, devnm_p back, dn_p dnp, devnmp->nextlink = dnp->linklist; devnmp->prevlinkp = devnmp->nextlink->prevlinkp; devnmp->nextlink->prevlinkp = &(devnmp->nextlink); + *devnmp->prevlinkp = devnmp; dnp->linklist = devnmp; } else { devnmp->nextlink = devnmp; @@ -543,7 +544,7 @@ devfs_propogate(devnm_p parent,devnm_p child) * Find the other instances of the parent node * \***********************************************/ for (adnp = pdnp->nextsibling; - adnp != pdnp->nextsibling; + adnp != pdnp; adnp = adnp->nextsibling) { /* @@ -551,7 +552,7 @@ devfs_propogate(devnm_p parent,devnm_p child) * if the node already exists on that plane it won't be * re-made.. */ - if ( error = dev_add_entry(child->name, pdnp, type, + if ( error = dev_add_entry(child->name, adnp, type, NULL, dnp, adnp->dvm, &newnmp)) { printf("duplicating %s failed\n",child->name); } |