Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 81ee87cd in mainline


Ignore:
Timestamp:
2012-04-11T18:48:28Z (10 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master
Children:
7eb033ce
Parents:
01b0262
Message:

missing functions

Location:
uspace/lib/ext4
Files:
2 edited

Legend:

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

    r01b0262 r81ee87cd  
    169169}
    170170
     171void ext4_block_group_set_flags(ext4_block_group_t *bg, uint16_t flags)
     172{
     173        bg->flags = host2uint16_t_le(flags);
     174}
     175
    171176uint32_t ext4_block_group_get_itable_unused(ext4_block_group_t *bg,
    172177                ext4_superblock_t *sb)
     
    208213        return false;
    209214}
     215
     216void ext4_block_group_clear_flag(ext4_block_group_t *bg, uint32_t clear_flag)
     217{
     218        uint32_t flags = ext4_block_group_get_flags(bg);
     219        flags = flags & (~clear_flag);
     220        ext4_block_group_set_flags(bg, flags);
     221}
     222
    210223
    211224/**
  • uspace/lib/ext4/libext4_block_group.h

    r01b0262 r81ee87cd  
    7474
    7575extern bool ext4_block_group_has_flag(ext4_block_group_t *, uint32_t);
     76extern void ext4_block_group_clear_flag(ext4_block_group_t *, uint32_t);
     77
    7678#endif
    7779
Note: See TracChangeset for help on using the changeset viewer.