Changeset eef306c in mainline for uspace/lib/ext2/libext2_superblock.c


Ignore:
Timestamp:
2011-03-09T16:16:27Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
868ef40
Parents:
e2abab03
Message:

Check filesystem feature flags when mounting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext2/libext2_superblock.c

    re2abab03 reef306c  
    258258
    259259/**
     260 * Get compatible features flags
     261 *
     262 * @param sb pointer to superblock
     263 */
     264inline uint32_t ext2_superblock_get_features_compatible(ext2_superblock_t *sb)
     265{
     266        return uint32_t_le2host(sb->features_compatible);
     267}
     268
     269/**
     270 * Get incompatible features flags
     271 *
     272 * @param sb pointer to superblock
     273 */
     274inline uint32_t ext2_superblock_get_features_incompatible(ext2_superblock_t *sb)
     275{
     276        return uint32_t_le2host(sb->features_incompatible);
     277}
     278
     279/**
     280 * Get read-only compatible features flags
     281 *
     282 * @param sb pointer to superblock
     283 */
     284inline uint32_t ext2_superblock_get_features_read_only(ext2_superblock_t *sb)
     285{
     286        return uint32_t_le2host(sb->features_read_only);
     287}
     288
     289/**
    260290 * Compute count of block groups present in the filesystem
    261291 *
Note: See TracChangeset for help on using the changeset viewer.