+unsigned int get_unit_mode_from_arg(int *argc, char *argv[], int df_mode);
+int string_is_numerical(const char *str);
+int prefixcmp(const char *str, const char *prefix);
+
+unsigned long total_memory(void);
+
+void print_device_info(struct btrfs_device *device, char *prefix);
+void print_all_devices(struct list_head *devices);
+
+/*
+ * Global program state, configurable by command line and available to
+ * functions without extra context passing.
+ */
+struct btrfs_config {
+};
+extern struct btrfs_config bconf;
+
+void btrfs_config_init(void);
+
+/* Pseudo random number generator wrappers */
+int rand_int(void);
+u8 rand_u8(void);
+u16 rand_u16(void);
+u32 rand_u32(void);
+u64 rand_u64(void);
+unsigned int rand_range(unsigned int upper);
+void init_rand_seed(u64 seed);
+