patch-src_fsck_fat_h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- dosfstools-3.0.26.orig/src/fsck.fat.h 2014-02-08 18:53:10.000000000 +0100
  2. +++ dosfstools-3.0.26/src/fsck.fat.h 2014-03-26 13:29:32.000000000 +0100
  3. @@ -143,8 +143,8 @@ typedef struct {
  4. typedef struct _dos_file {
  5. DIR_ENT dir_ent;
  6. char *lfn;
  7. - loff_t offset;
  8. - loff_t lfn_offset;
  9. + off_t offset;
  10. + off_t lfn_offset;
  11. struct _dos_file *parent; /* parent directory */
  12. struct _dos_file *next; /* next entry */
  13. struct _dos_file *first; /* first entry (directory only) */
  14. @@ -157,19 +157,19 @@ typedef struct {
  15. typedef struct {
  16. int nfats;
  17. - loff_t fat_start;
  18. + off_t fat_start;
  19. unsigned int fat_size; /* unit is bytes */
  20. unsigned int fat_bits; /* size of a FAT entry */
  21. unsigned int eff_fat_bits; /* # of used bits in a FAT entry */
  22. uint32_t root_cluster; /* 0 for old-style root dir */
  23. - loff_t root_start;
  24. + off_t root_start;
  25. unsigned int root_entries;
  26. - loff_t data_start;
  27. + off_t data_start;
  28. unsigned int cluster_size;
  29. uint32_t clusters;
  30. - loff_t fsinfo_start; /* 0 if not present */
  31. + off_t fsinfo_start; /* 0 if not present */
  32. long free_clusters;
  33. - loff_t backupboot_start; /* 0 if not present */
  34. + off_t backupboot_start; /* 0 if not present */
  35. unsigned char *fat;
  36. DOS_FILE **cluster_owner;
  37. char *label;