diff options
author | Yingyi Luo <yingyil@google.com> | 2017-09-15 11:17:31 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-06 13:23:37 +0200 |
commit | fe667f6e7d0a3215bf671bfd70b0eb18d6e9c1a6 (patch) | |
tree | 2e6eb8bcb44a2985707a0f0496a08a644920494a /ctree.h | |
parent | 8a820b57656c1a062c6445f872a9169fa0d9b381 (diff) |
btrfs-progs: add a parameter to btrfs_mksubvol
A convert parameter is added as a flag to indicate if btrfs_mksubvol()
is used for btrfs-convert. The change cascades down to the callchain.
Signed-off-by: Yingyi Luo <yingyil@google.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,6 +19,8 @@ #ifndef __BTRFS_CTREE_H__ #define __BTRFS_CTREE_H__ +#include <stdbool.h> + #if BTRFS_FLAT_INCLUDES #include "list.h" #include "kerncompat.h" @@ -2746,7 +2748,7 @@ int btrfs_add_orphan_item(struct btrfs_trans_handle *trans, int btrfs_mkdir(struct btrfs_trans_handle *trans, struct btrfs_root *root, char *name, int namelen, u64 parent_ino, u64 *ino, int mode); struct btrfs_root *btrfs_mksubvol(struct btrfs_root *root, const char *base, - u64 root_objectid); + u64 root_objectid, bool convert); /* file.c */ int btrfs_get_extent(struct btrfs_trans_handle *trans, |