Changeset d9aeab3 in mainline for uspace/srv/fs/exfat/exfat_ops.c


Ignore:
Timestamp:
2011-08-15T17:18:34Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a06c1b
Parents:
4ba3535
Message:

exFAT: zeroing cluster while expanding node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_ops.c

    r4ba3535 rd9aeab3  
    389389}
    390390
    391 static int exfat_node_expand(devmap_handle_t devmap_handle, exfat_node_t *nodep, exfat_cluster_t clusters)
     391int exfat_node_expand(devmap_handle_t devmap_handle, exfat_node_t *nodep, exfat_cluster_t clusters)
    392392{
    393393        exfat_bs_t *bs;
     
    415415        if (rc != EOK)
    416416                return rc;
     417        rc = exfat_zero_cluster(bs, devmap_handle, mcl);
     418        if (rc != EOK) {
     419                (void) exfat_free_clusters(bs, devmap_handle, mcl);
     420                return rc;
     421        }
    417422        /*
    418423         * Append the cluster chain starting in mcl to the end of the
Note: See TracChangeset for help on using the changeset viewer.