summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-06-07 22:12:21 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-06-07 22:12:21 -0400
commit84e9d08a4bd72f106c1d97823c76410ae5076420 (patch)
tree29bd205a58a896dbeab9337ed287ef224eb636c9 /mkfs.c
parent9b25940b9d4e73c4d66461018536dfba97c1e212 (diff)
endian fixes, makefile fixes
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkfs.c b/mkfs.c
index 1d5c0d6c..14b1b898 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -51,11 +51,11 @@ static int __make_root_dir(struct btrfs_trans_handle *trans,
if (ret)
goto error;
ret = btrfs_insert_dir_item(trans, root, buf, 1, objectid,
- &inode_map, 1);
+ &inode_map, BTRFS_FT_DIR);
if (ret)
goto error;
ret = btrfs_insert_dir_item(trans, root, buf, 2, objectid,
- &inode_map, 1);
+ &inode_map, BTRFS_FT_DIR);
if (ret)
goto error;
btrfs_set_root_dirid(&root->root_item, objectid);
@@ -149,7 +149,7 @@ static int make_root_dir(int fd) {
ret = btrfs_insert_dir_item(trans, root->fs_info->tree_root,
"default", strlen("default"),
btrfs_super_root_dir(root->fs_info->disk_super),
- &location, 1);
+ &location, BTRFS_FT_DIR);
if (ret)
goto err;
btrfs_commit_transaction(trans, root, root->fs_info->disk_super);