Changeset 82a3b31f in mainline for uspace/srv/fs/ext2fs/ext2fs_ops.c


Ignore:
Timestamp:
2011-06-03T20:25:10Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7c3367
Parents:
21300a2
Message:

Fix ext2 on big-endian machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext2fs/ext2fs_ops.c

    r21300a2 r82a3b31f  
    232232        size_t component_size;
    233233        bool found = false;
     234        uint32_t inode;
    234235       
    235236        fs = eparent->instance->filesystem;
     
    254255       
    255256        while (it.current != NULL) {
     257                inode = ext2_directory_entry_ll_get_inode(it.current);
     258               
    256259                /* ignore empty directory entries */
    257                 if (it.current->inode != 0) {
     260                if (inode != 0) {
    258261                        name_size = ext2_directory_entry_ll_get_name_length(fs->superblock,
    259262                                it.current);
     
    262265                                    name_size) == 0) {
    263266                                rc = ext2fs_node_get_core(rfn, eparent->instance,
    264                                         it.current->inode);
     267                                        inode);
    265268                                if (rc != EOK) {
    266269                                        ext2_directory_iterator_fini(&it);
Note: See TracChangeset for help on using the changeset viewer.