]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs.h
New upstream release
[bcachefs-tools-debian] / libbcachefs.h
index 7cdbf69622548aa9f88bf982a65756a6673c8ef0..17e8eef3d9998d037c2787e2c431647e5e17e933 100644 (file)
@@ -35,7 +35,6 @@ struct format_opts {
        uuid_le         uuid;
        unsigned        version;
        unsigned        superblock_size;
-       unsigned        encoded_extent_max;
        bool            encrypted;
        char            *passphrase;
 };
@@ -45,16 +44,15 @@ static inline struct format_opts format_opts_default()
        return (struct format_opts) {
                .version                = bcachefs_metadata_version_current,
                .superblock_size        = SUPERBLOCK_SIZE_DEFAULT,
-               .encoded_extent_max     = 128,
        };
 }
 
 struct dev_opts {
        int             fd;
        char            *path;
-       u64             size; /* 512 byte sectors */
-       unsigned        bucket_size;
-       const char      *group;
+       u64             size;           /* bytes*/
+       u64             bucket_size;    /* bytes */
+       const char      *label;
        unsigned        data_allowed;
        unsigned        durability;
        bool            discard;
@@ -81,8 +79,6 @@ struct bch_sb *bch2_format(struct bch_opt_strs,
 void bch2_super_write(int, struct bch_sb *);
 struct bch_sb *__bch2_super_read(int, u64);
 
-void bch2_sb_print(struct bch_sb *, bool, unsigned, enum units);
-
 /* ioctl interface: */
 
 int bcachectl_open(void);
@@ -241,7 +237,7 @@ struct dev_name {
        char            *label;
        uuid_le         uuid;
 };
-typedef darray(struct dev_name) dev_names;
+typedef DARRAY(struct dev_name) dev_names;
 
 dev_names bchu_fs_get_devices(struct bchfs_handle);