Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-exfat: Commit

external/exfat


Commit MetaInfo

Revision2f6a54823b8069e9f02b5ece1e6b77307f808283 (tree)
Time2017-05-03 02:19:57
Authorrelan <relan@user...>
Commiterrelan

Log Message

Fix clusters bitmap size.

The last two clusters were erroneously considered invalid. Note that
clusters numbering starts with 2.

Change Summary

Incremental Difference

--- a/libexfat/node.c
+++ b/libexfat/node.c
@@ -469,8 +469,7 @@ static int readdir(struct exfat* ef, struct exfat_node* parent,
469469 ef->cmap.start_cluster);
470470 return -EIO;
471471 }
472- ef->cmap.size = le32_to_cpu(ef->sb->cluster_count) -
473- EXFAT_FIRST_DATA_CLUSTER;
472+ ef->cmap.size = le32_to_cpu(ef->sb->cluster_count);
474473 if (le64_to_cpu(bitmap->size) < DIV_ROUND_UP(ef->cmap.size, 8))
475474 {
476475 exfat_error("invalid clusters bitmap size: %"PRIu64
Show on old repository browser