41#if !defined (_RTEMS_RFS_GROUP_H_)
42#define _RTEMS_RFS_GROUP_H_
58#define RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK (0)
59#define RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK (1)
60#define RTEMS_RFS_GROUP_INODE_BLOCK (2)
107#define rtems_rfs_group_block(_g, _b) (((_g)->base) + (_b))
112#define rtems_rfs_group_inode(_f, _g, _i) \
113 (((_f)->group_inodes * (_g)) + (_i) + RTEMS_RFS_ROOT_INO)
int rtems_rfs_group_bitmap_free(rtems_rfs_file_system *fs, bool inode, rtems_rfs_bitmap_bit no)
Free the group allocated bit.
Definition: rtems-rfs-group.c:292
struct _rtems_rfs_group rtems_rfs_group
Creates bit allocator for blocks in the group simpler.
int rtems_rfs_group_bitmap_alloc(rtems_rfs_file_system *fs, rtems_rfs_bitmap_bit goal, bool inode, rtems_rfs_bitmap_bit *result)
Allocate an inode or block.
Definition: rtems-rfs-group.c:172
int rtems_rfs_group_bitmap_test(rtems_rfs_file_system *fs, bool inode, rtems_rfs_bitmap_bit no, bool *state)
Test the group allocated bit.
Definition: rtems-rfs-group.c:333
int rtems_rfs_group_close(rtems_rfs_file_system *fs, rtems_rfs_group *group)
Close a group.
Definition: rtems-rfs-group.c:142
int rtems_rfs_group_usage(rtems_rfs_file_system *fs, size_t *blocks, size_t *inodes)
Determine the number of blocks and inodes used.
Definition: rtems-rfs-group.c:379
int rtems_rfs_group_open(rtems_rfs_file_system *fs, rtems_rfs_buffer_block base, size_t size, size_t inodes, rtems_rfs_group *group)
Open a group.
Definition: rtems-rfs-group.c:51
RTEMS File Systems Bitmap Routines.
int32_t rtems_rfs_bitmap_bit
Definition: rtems-rfs-bitmaps.h:103
Maps Blocks to the Media Interface Layers.
uint32_t rtems_rfs_buffer_block
Definition: rtems-rfs-buffer.h:81
Manages the Trace and Debugging Features of the RTEMS RFS File System.
Definition: rtems-rfs-file-system.h:135
Creates bit allocator for blocks in the group simpler.
Definition: rtems-rfs-group.h:71
rtems_rfs_buffer_block base
Definition: rtems-rfs-group.h:75
size_t size
Definition: rtems-rfs-group.h:80
rtems_rfs_buffer_handle inode_bitmap_buffer
Definition: rtems-rfs-group.h:100
rtems_rfs_buffer_handle block_bitmap_buffer
Definition: rtems-rfs-group.h:90
rtems_rfs_bitmap_control block_bitmap
Definition: rtems-rfs-group.h:85
rtems_rfs_bitmap_control inode_bitmap
Definition: rtems-rfs-group.h:95
Definition: rtems-rfs-bitmaps.h:124
Definition: rtems-rfs-buffer.h:111
unsigned size
Definition: tte.h:1