btrfs-progs: mkfs: fix overwritten return value for mkfs
[platform/upstream/btrfs-progs.git] / utils.h
diff --git a/utils.h b/utils.h
index 7e9d5ac..a82d46f 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -73,6 +73,8 @@ void units_set_base(unsigned *units, unsigned base);
 struct seen_fsid {
        u8 fsid[BTRFS_FSID_SIZE];
        struct seen_fsid *next;
+       DIR *dirstream;
+       int fd;
 };
 
 int btrfs_make_root_dir(struct btrfs_trans_handle *trans,
@@ -110,7 +112,8 @@ int get_fs_info(const char *path, struct btrfs_ioctl_fs_info_args *fi_args,
 int get_fsid(const char *path, u8 *fsid, int silent);
 
 int is_seen_fsid(u8 *fsid, struct seen_fsid *seen_fsid_hash[]);
-int add_seen_fsid(u8 *fsid, struct seen_fsid *seen_fsid_hash[]);
+int add_seen_fsid(u8 *fsid, struct seen_fsid *seen_fsid_hash[],
+               int fd, DIR *dirstream);
 void free_seen_fsid(struct seen_fsid *seen_fsid_hash[]);
 
 int get_label(const char *btrfs_dev, char *label);
@@ -166,6 +169,8 @@ 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);
+
 /*
  * Global program state, configurable by command line and available to
  * functions without extra context passing.