source: mainline/uspace/lib/ext4/libext4_block_group.h@ 9fc72fb3

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 9fc72fb3 was f22d5ef0, checked in by Frantisek Princ <frantisek.princ@…>, 13 years ago

Copyright update

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/*
2 * Copyright (c) 2012 Frantisek Princ
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup libext4
30 * @{
31 */
32
33#ifndef LIBEXT4_LIBEXT4_BLOCK_GROUP_H_
34#define LIBEXT4_LIBEXT4_BLOCK_GROUP_H_
35
36#include <libblock.h>
37#include <sys/types.h>
38#include "libext4_types.h"
39
40extern uint64_t ext4_block_group_get_block_bitmap(ext4_block_group_t *,
41 ext4_superblock_t *);
42extern void ext4_block_group_set_block_bitmap(ext4_block_group_t *,
43 ext4_superblock_t *, uint64_t);
44extern uint64_t ext4_block_group_get_inode_bitmap(ext4_block_group_t *,
45 ext4_superblock_t *);
46extern void ext4_block_group_set_inode_bitmap(ext4_block_group_t *,
47 ext4_superblock_t *, uint64_t);
48extern uint64_t ext4_block_group_get_inode_table_first_block(
49 ext4_block_group_t *, ext4_superblock_t *);
50extern void ext4_block_group_set_inode_table_first_block(
51 ext4_block_group_t *, ext4_superblock_t *, uint64_t);
52extern uint32_t ext4_block_group_get_free_blocks_count(ext4_block_group_t *,
53 ext4_superblock_t *);
54extern void ext4_block_group_set_free_blocks_count(ext4_block_group_t *,
55 ext4_superblock_t *, uint32_t);
56extern uint32_t ext4_block_group_get_free_inodes_count(ext4_block_group_t *,
57 ext4_superblock_t *);
58extern void ext4_block_group_set_free_inodes_count(ext4_block_group_t *,
59 ext4_superblock_t *, uint32_t);
60extern void ext4_block_group_set_free_inodes_count(ext4_block_group_t *,
61 ext4_superblock_t *, uint32_t);
62extern uint32_t ext4_block_group_get_used_dirs_count(ext4_block_group_t *,
63 ext4_superblock_t *);
64extern void ext4_block_group_set_used_dirs_count(ext4_block_group_t *,
65 ext4_superblock_t *, uint32_t);
66extern uint16_t ext4_block_group_get_flags(ext4_block_group_t *);
67extern void ext4_block_group_set_flags(ext4_block_group_t *, uint16_t);
68extern uint32_t ext4_block_group_get_itable_unused(ext4_block_group_t *,
69 ext4_superblock_t *);
70extern void ext4_block_group_set_itable_unused(ext4_block_group_t *,
71 ext4_superblock_t *, uint32_t);
72extern uint16_t ext4_block_group_get_checksum(ext4_block_group_t *);
73extern void ext4_block_group_set_checksum(ext4_block_group_t *, uint16_t);
74
75extern bool ext4_block_group_has_flag(ext4_block_group_t *, uint32_t);
76extern void ext4_block_group_set_flag(ext4_block_group_t *, uint32_t);
77extern void ext4_block_group_clear_flag(ext4_block_group_t *, uint32_t);
78
79#endif
80
81/**
82 * @}
83 */
Note: See TracBrowser for help on using the repository browser.