diff options
author | Josef Bacik <jbacik@redhat.com> | 2008-07-30 09:15:02 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-07-30 09:15:02 -0400 |
commit | 0045e0dd707a2db25231c454cb8d247bb56308cf (patch) | |
tree | e608b6ed4679c8a8eab9c231d29f16f6cff740c8 /ctree.h | |
parent | e74b89d6759b7f1d3aefe60a2f9cd139d40be79e (diff) |
btrfs-progs: add orphan support to print-tree
This adds orphan support to print-tree so when debug_tree hits an orphan item it
will print out "orphan item" under it so you know what it is
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -55,6 +55,9 @@ struct btrfs_trans_handle; /* directory objectid inside the root tree */ #define BTRFS_ROOT_TREE_DIR_OBJECTID 6ULL +/* oprhan objectid for tracking unlinked/truncated files */ +#define BTRFS_ORPHAN_OBJECTID -5ULL + /* * All files have objectids higher than this. */ @@ -564,6 +567,7 @@ struct btrfs_root { #define BTRFS_INODE_ITEM_KEY 1 #define BTRFS_INODE_REF_KEY 2 #define BTRFS_XATTR_ITEM_KEY 8 +#define BTRFS_ORPHAN_ITEM_KEY 9 /* reserve 3-15 close to the inode for later flexibility */ |