]> git.sven.stormbind.net Git - sven/exfatprogs.git/blobdiff - include/libexfat.h
New upstream version 1.1.2
[sven/exfatprogs.git] / include / libexfat.h
index c21dc06756559ae5fa93c558fcae81e3ab8396d6..fecd7f23719bebd3d0db5650eed5cc533c70afc2 100644 (file)
@@ -43,6 +43,8 @@
 #define EXFAT_GET_VOLUME_SERIAL                0x03
 #define EXFAT_SET_VOLUME_SERIAL                0x04
 
+#define EXFAT_MAX_SECTOR_SIZE          4096
+
 enum {
        BOOT_SEC_IDX = 0,
        EXBOOT_SEC_IDX,
@@ -55,6 +57,7 @@ enum {
 
 struct exfat_blk_dev {
        int dev_fd;
+       unsigned long long offset;
        unsigned long long size;
        unsigned int sector_size;
        unsigned int sector_size_bits;
@@ -69,6 +72,7 @@ struct exfat_user_input {
        unsigned int cluster_size;
        unsigned int sec_per_clu;
        unsigned int boundary_align;
+       bool pack_bitmap;
        bool quick;
        __u16 volume_label[VOLUME_LABEL_MAX_LEN];
        int volume_label_len;
@@ -104,9 +108,8 @@ int exfat_write_sector(struct exfat_blk_dev *bd, void *buf,
                unsigned int sec_off);
 int exfat_write_checksum_sector(struct exfat_blk_dev *bd,
                unsigned int checksum, bool is_backup);
-char *exfat_conv_volume_serial(struct exfat_dentry *vol_entry);
-int exfat_show_volume_serial(struct exfat_blk_dev *bd,
-               struct exfat_user_input *ui);
+char *exfat_conv_volume_label(struct exfat_dentry *vol_entry);
+int exfat_show_volume_serial(int fd);
 int exfat_set_volume_serial(struct exfat_blk_dev *bd,
                struct exfat_user_input *ui);
 unsigned int exfat_clus_to_blk_dev_off(struct exfat_blk_dev *bd,