volser-ros-use-parent-id-20030512
authorDerrick Brashear <shadow@dementia.org>
Tue, 13 May 2003 02:58:32 +0000 (02:58 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 13 May 2003 02:58:32 +0000 (02:58 +0000)
FIXES 1448

everything shoudl be done as the parent volume id so the volume group stuff works right.
otherwise, we create things which get stored under one "tag", try to open the,
under another "tag" and they aren't there, because it doesn't hash the same.

src/volser/volprocs.c

index a265e3b..5bad0c1 100644 (file)
@@ -207,7 +207,7 @@ Volume      * vp;
                            V_parentId(vp), 1, 1, 0);
     assert(VALID_INO(inodeNumber));
 
-    SetSalvageDirHandle(&dir, V_id(vp), vp->device, inodeNumber);
+    SetSalvageDirHandle(&dir, V_parentId(vp), vp->device, inodeNumber);
     did.Volume = V_id(vp);
     did.Vnode = (VnodeId)1;
     did.Unique = 1;