avoid-assert-for-missing-vnodes-20060921

right now if a vnode is missing when we try to clone, we could assert. ick.
This commit is contained in:
Derrick Brashear 2006-09-21 12:47:20 +00:00
parent 86f4e7620b
commit b613480bd5

View File

@ -262,7 +262,8 @@ DoCloneIndex(Volume * rwvp, Volume * clvp, VnodeClass class, int reclone)
Log("IH_INC failed: %x, %s, %u errno %d\n", Log("IH_INC failed: %x, %s, %u errno %d\n",
V_linkHandle(rwvp), PrintInode(NULL, rwinode), V_linkHandle(rwvp), PrintInode(NULL, rwinode),
V_parentId(rwvp), errno); V_parentId(rwvp), errno);
assert(0); VForceOffline_r(rwvp);
ERROR_EXIT(EIO);
} }
inodeinced = 1; inodeinced = 1;
} }
@ -314,7 +315,8 @@ DoCloneIndex(Volume * rwvp, Volume * clvp, VnodeClass class, int reclone)
Log("IH_DEC failed: %x, %s, %u errno %d\n", Log("IH_DEC failed: %x, %s, %u errno %d\n",
V_linkHandle(rwvp), PrintInode(NULL, rwinode), V_linkHandle(rwvp), PrintInode(NULL, rwinode),
V_parentId(rwvp), errno); V_parentId(rwvp), errno);
assert(0); VForceOffline_r(rwvp);
ERROR_EXIT(EIO);
} }
} }
/* And if the directory was marked clone, unmark it */ /* And if the directory was marked clone, unmark it */