Changeset 3711e7e in mainline for uspace/lib/ext4/libext4_superblock.c


Ignore:
Timestamp:
2011-10-05T09:35:12Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3712434
Parents:
cfa1a8a
Message:

Complete mounting skeleton (ported from ext2fs) - some filesystem checks during mount process still missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_superblock.c

    rcfa1a8a r3711e7e  
    4040#include <libblock.h>
    4141#include <malloc.h>
    42 #include "libext4_superblock.h"
     42#include "libext4.h"
    4343
    4444/**
     
    8080{
    8181        return uint32_t_le2host(sb->rev_level);
     82}
     83
     84/**
     85 * TODO doxy
     86 */
     87uint16_t ext4_superblock_get_inode_size(ext4_superblock_t *sb)
     88{
     89        if (ext4_superblock_get_rev_level(sb) == 0) {
     90                return EXT4_REV0_INODE_SIZE;
     91        }
     92        return uint16_t_le2host(sb->inode_size);
     93}
     94
     95/**
     96 * TODO doxy
     97 */
     98uint32_t ext4_superblock_get_inodes_per_group(ext4_superblock_t *sb)
     99{
     100        return uint32_t_le2host(sb->inodes_per_group);
    82101}
    83102
Note: See TracChangeset for help on using the changeset viewer.