Changeset d290ef4 in mainline


Ignore:
Timestamp:
2009-08-12T20:45:58Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d44aabd
Parents:
5f116e7
Message:

fat_link() should zero out all the blocks of the newly allocated cluster and it
should do it before appending the new cluster to the parent node.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r5f116e7 rd290ef4  
    460460                return rc;
    461461        }
     462        fat_zero_cluster(bs, parentp->idx->dev_handle, mcl);
    462463        fat_append_clusters(bs, parentp, mcl);
    463         b = fat_block_get(bs, parentp, i, BLOCK_FLAGS_NOREAD);
     464        b = fat_block_get(bs, parentp, i, BLOCK_FLAGS_NONE);
    464465        d = (fat_dentry_t *)b->data;
    465         /*
    466          * Clear all dentries in the block except for the first one (the first
    467          * dentry will be cleared in the next step).
    468          */
    469         memset(d + 1, 0, bps - sizeof(fat_dentry_t));
    470466
    471467hit:
Note: See TracChangeset for help on using the changeset viewer.