Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d9aeab3 in mainline


Ignore:
Timestamp:
2011-08-15T17:18:34Z (10 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master
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.