diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-02-22 11:39:13 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-02-22 11:39:13 -0500 |
commit | e0bafb2999cde235e5d08de08279525e65c51411 (patch) | |
tree | 3f7a2fd873fe5044b145feb57c4fa2eaed87645a /disk-io.c | |
parent | 72777fbe2992c9e4aa157730e354d01cc26f0853 (diff) |
switch to early splits
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -149,7 +149,8 @@ struct ctree_root *open_ctree(char *filename, struct ctree_super_block *super) } ret = pread(fp, super, sizeof(struct ctree_super_block), CTREE_SUPER_INFO_OFFSET(CTREE_BLOCKSIZE)); - if (ret == 0) { + if (ret == 0 || super->root_info.tree_root == 0) { + printf("making new FS!\n"); ret = mkfs(fp); if (ret) return NULL; |