summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2016-08-11 12:47:50 +0100
committerDimitri John Ledkov <xnox@ubuntu.com>2016-08-11 12:47:50 +0100
commit977f95bd164e17520fced5bd3ea1f01175a7f0ea (patch)
treecab3fd3533635deab3459b79f040621b006d33cc /utils.h
parente056abdf97ee6899e41bd511eaa8d98aa2c45bb8 (diff)
parentffd998be34a1a3d208106d051e85058ff9ac9667 (diff)
New upstream release.
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils.h b/utils.h
index 98bfb34d..58121ced 100644
--- a/utils.h
+++ b/utils.h
@@ -147,12 +147,16 @@ struct btrfs_convert_context {
void *fs_data;
};
+#define PREP_DEVICE_ZERO_END (1U << 0)
+#define PREP_DEVICE_DISCARD (1U << 1)
+#define PREP_DEVICE_VERBOSE (1U << 2)
+
int make_btrfs(int fd, struct btrfs_mkfs_config *cfg,
struct btrfs_convert_context *cctx);
int btrfs_make_root_dir(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 objectid);
-int btrfs_prepare_device(int fd, const char *file, int zero_end,
- u64 *block_count_ret, u64 max_block_count, int discard);
+int btrfs_prepare_device(int fd, const char *file, u64 *block_count_ret,
+ u64 max_block_count, unsigned opflags);
int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
struct btrfs_root *root, int fd, char *path,
u64 block_count, u32 io_width, u32 io_align,