Changeset 2175178 in mainline for uspace/lib/ext4/src/directory.c


Ignore:
Timestamp:
2018-10-03T08:34:52Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b209135
Parents:
174156fd
git-author:
Jiri Svoboda <jiri@…> (2018-10-02 21:31:25)
git-committer:
Jiri Svoboda <jiri@…> (2018-10-03 08:34:52)
Message:

Allow creating ext2 dynamic revision. Allow choosing ext filesystem version by mkext4 argument. Fix support for filesystems without filetype feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/directory.c

    r174156fd r2175178  
    369369
    370370        /* Set type of entry */
    371         if (ext4_inode_is_type(sb, child->inode, EXT4_INODE_MODE_DIRECTORY))
     371        if (!ext4_superblock_has_feature_incompatible(sb, EXT4_FEATURE_INCOMPAT_FILETYPE))
     372                ext4_directory_entry_ll_set_inode_type(sb, entry,
     373                    EXT4_DIRECTORY_FILETYPE_UNKNOWN);
     374        else if (ext4_inode_is_type(sb, child->inode, EXT4_INODE_MODE_DIRECTORY))
    372375                ext4_directory_entry_ll_set_inode_type(sb, entry,
    373376                    EXT4_DIRECTORY_FILETYPE_DIR);
Note: See TracChangeset for help on using the changeset viewer.