{
cluster_t cluster;
off_t offset;
- int contiguous;
char* chunk;
};
exfat_bug("not a directory");
it->cluster = dir->start_cluster;
it->offset = 0;
- it->contiguous = IS_CONTIGUOUS(*dir);
it->chunk = malloc(CLUSTER_SIZE(*ef->sb));
if (it->chunk == NULL)
{
if (exfat_pread(ef->dev, it->chunk, CLUSTER_SIZE(*ef->sb),
exfat_c2o(ef, it->cluster)) < 0)
{
+ free(it->chunk);
exfat_error("failed to read directory cluster %#x", it->cluster);
return -EIO;
}
{
it->cluster = 0;
it->offset = 0;
- it->contiguous = 0;
free(it->chunk);
it->chunk = NULL;
}