mkfs root dir size wrong

This commit is contained in:
Remzi Arpaci-Dusseau
2022-12-06 09:52:47 -06:00
parent 8d2cbee595
commit b95350cb74

View File

@@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
inode_block itable;
itable.inodes[0].type = UFS_DIRECTORY;
itable.inodes[0].size = sizeof(dir_ent_t); // in bytes
itable.inodes[0].size = 2 * sizeof(dir_ent_t); // in bytes
itable.inodes[0].direct[0] = s.data_region_addr;
for (i = 1; i < DIRECT_PTRS; i++)
itable.inodes[0].direct[i] = -1;