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

Changeset 75513701 in mainline


Ignore:
Timestamp:
2011-08-15T17:23:34Z (10 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master
Children:
e8976b59
Parents:
9558eaa
Message:

exFAT: fix fragmentation check

File:
1 edited

Legend:

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

    r9558eaa r75513701  
    395395        bs = block_bb_get(devmap_handle);
    396396
    397         if (nodep->fragmented) {
     397        if (!nodep->fragmented) {
    398398                rc = bitmap_append_clusters(bs, nodep, clusters);
    399399                if (rc != ENOSPC)
     
    439439        bs = block_bb_get(devmap_handle);
    440440
    441         if (nodep->fragmented) {
     441        if (!nodep->fragmented) {
    442442                exfat_cluster_t clsts, prev_clsts, new_clsts;
    443443                prev_clsts = ROUND_UP(nodep->size, BPC(bs)) / BPC(bs);
Note: See TracChangeset for help on using the changeset viewer.