aboutsummaryrefslogtreecommitdiffstats
path: root/dir-test.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 /dir-test.c
parent9b25940b9d4e73c4d66461018536dfba97c1e212 (diff)
downloadbtrfs-progs-84e9d08a4bd72f106c1d97823c76410ae5076420.tar.gz
btrfs-progs-84e9d08a4bd72f106c1d97823c76410ae5076420.tar.xz
btrfs-progs-84e9d08a4bd72f106c1d97823c76410ae5076420.zip
endian fixes, makefile fixes
Diffstat (limited to 'dir-test.c')
-rw-r--r--dir-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir-test.c b/dir-test.c
index cdef716..03dbfa1 100644
--- a/dir-test.c
+++ b/dir-test.c
@@ -77,7 +77,7 @@ static int ins_one(struct btrfs_trans_handle *trans, struct btrfs_root *root,
if (ret)
goto error;
ret = btrfs_insert_dir_item(trans, root, buf, strlen(buf), dir_oid,
- &inode_map, 1);
+ &inode_map, BTRFS_FT_UNKNOWN);
if (ret)
goto error;
@@ -143,7 +143,7 @@ static int insert_dup(struct btrfs_trans_handle *trans, struct btrfs_root
btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY);
key.offset = 0;
ret = btrfs_insert_dir_item(trans, root, buf, strlen(buf), dir_oid,
- &key, 1);
+ &key, BTRFS_FT_UNKNOWN);
if (ret != -EEXIST) {
printf("insert on %s gave us %d\n", buf, ret);
return 1;