source: mainline/uspace/lib/ext4/libext4_block_group.h@ 22fb7ab

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 22fb7ab was d1538a1, checked in by Martin Sucha <sucha14@…>, 13 years ago

Add missing copyright headers to ext4

Those files are based on ext2 filesystem driver code.

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