summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-09 16:27:26 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-10 13:14:26 +0100
commit43c36f3cfd4e076e8bc882a2f53619b88be15e2e (patch)
tree3781284ebb86ed47194d47dbb27d142b4670a3ce /ctree.h
parent0cc75eddd093d32c39830b95ddbba5d79d7ca69b (diff)
downloadbtrfs-progs-43c36f3cfd4e076e8bc882a2f53619b88be15e2e.tar.gz
btrfs-progs: Add btrfs_mkdir() function for the incoming 'lost+found' fsck mechanism.
With the previous btrfs inode operations patches, now we can use btrfs_mkdir() to create the 'lost+found' dir to do some data salvage in btrfsck. This patch along with previous ones will make data salvage easier. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 001af63..eadae76 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2454,4 +2454,6 @@ int btrfs_unlink(struct btrfs_trans_handle *trans, struct btrfs_root *root,
int btrfs_add_orphan_item(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct btrfs_path *path,
u64 ino);
+int btrfs_mkdir(struct btrfs_trans_handle *trans, struct btrfs_root *root,
+ char *name, int namelen, u64 parent_ino, u64 *ino, int mode);
#endif