Changeset a5da446 in mainline


Ignore:
Timestamp:
2008-11-23T16:39:17Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b9e7944
Parents:
0fdd6bb
Message:

When syncing a FAT node, do not skip attributes.

File:
1 edited

Legend:

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

    r0fdd6bb ra5da446  
    9595
    9696        d->firstc = host2uint16_t_le(node->firstc);
    97         if (node->type == FAT_FILE)
     97        if (node->type == FAT_FILE) {
    9898                d->size = host2uint32_t_le(node->size);
    99         /* TODO: update other fields? (e.g time fields, attr field) */
     99        } else if (node->type == FAT_DIRECTORY) {
     100                d->attr = FAT_ATTR_SUBDIR;
     101        }
     102       
     103        /* TODO: update other fields? (e.g time fields) */
    100104       
    101105        b->dirty = true;                /* need to sync block */
Note: See TracChangeset for help on using the changeset viewer.