+ pfatal("ROOT INODE UNALLOCATED");
+ if (reply("ALLOCATE") == 0)
+ errexit("");
+ if (allocdir(ROOTINO, ROOTINO) != ROOTINO)
+ errexit("CANNOT ALLOCATE ROOT INODE\n");
+ descend(&rootdesc, ROOTINO);
+ break;
+
+ case DCLEAR:
+ pfatal("DUPS/BAD IN ROOT INODE");
+ if (reply("REALLOCATE")) {
+ freeino(ROOTINO);
+ if (allocdir(ROOTINO, ROOTINO) != ROOTINO)
+ errexit("CANNOT ALLOCATE ROOT INODE\n");
+ descend(&rootdesc, ROOTINO);
+ break;
+ }
+ if (reply("CONTINUE") == 0)
+ errexit("");
+ statemap[ROOTINO] = DSTATE;
+ descend(&rootdesc, ROOTINO);
+ break;