2 * resize2fs.h --- ext2 resizer header file
4 * Copyright (C) 1997 Theodore Ts'o
15 #include <sys/types.h>
18 #ifdef HAVE_LINUX_FS_H
21 #include <linux/ext2_fs.h>
23 #include "ext2fs/ext2fs.h"
24 #include "ext2fs/brel.h"
25 #include "banalysis.h"
35 * Flags for the resizer; most are debugging flags only
37 #define RESIZE_DEBUG_IO 0x0001
38 #define RESIZE_DEBUG_BMOVE 0x0002
39 #define RESIZE_DEBUG_INODEMAP 0x0004
40 #define RESIZE_DEBUG_ITABLEMOVE 0x0008
42 #define RESIZE_PERCENT_COMPLETE 0x0100
45 * The core state structure for the ext2 resizer
48 struct ext2_resize_struct {
51 ext2_brel block_relocate;
52 ext2fs_block_bitmap reserve_blocks;
58 typedef struct ext2_resize_struct *ext2_resize_t;
61 extern errcode_t resize_fs(ext2_filsys fs, blk_t new_size, int flags);