diskused = V_diskused(rwvp);
}
+ /* Initialize list of inodes to nuke - must do this before any calls
+ * to ERROR_EXIT, as the error handler requires an initialised list
+ */
+ ci_InitHead(&decHead);
+ decRock.h = V_linkHandle(rwvp);
+ decRock.vol = V_parentId(rwvp);
+
/* Open the RW volume's index file and seek to beginning */
IH_COPY(rwH, rwvp->vnodeIndex[class].handle);
rwFd = IH_OPEN(rwH);
STREAM_ASEEK(clfilein, vcp->diskSize); /* Will fail if no vnodes */
}
- /* Initialize list of inodes to nuke */
- ci_InitHead(&decHead);
- decRock.h = V_linkHandle(rwvp);
- decRock.vol = V_parentId(rwvp);
-
/* Read each vnode in the old volume's index file */
for (offset = vcp->diskSize;
STREAM_READ(rwvnode, vcp->diskSize, 1, rwfile) == 1;