~ubuntu-branches/ubuntu/edgy/e2fsprogs/edgy-updates

« back to all changes in this revision

Viewing changes to lib/ext2fs/ext2_fs.h

  • Committer: Bazaar Package Importer
  • Author(s): Theodore Y. Ts'o
  • Date: 2006-05-29 11:07:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060529110753-uvkuaxqr96y31kqy
Tags: 1.39-1
* New upstream version
* Fix debugfs's dump_unused command so it will not core dump on
  filesystems with a 64k blocksize
* Clarified and improved man pages, including spelling errors
  (Closes: #368392, #368393, #368394, #368179)
* New filesystems are now created with directory indexing and
  on-line resizing enabled by default
* Fix previously mangled wording in an older Debian changelog entry
* Fix doc-base pointer to the top-level html file (Closes: #362544, #362970)

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
        __u16   bg_free_blocks_count;   /* Free blocks count */
144
144
        __u16   bg_free_inodes_count;   /* Free inodes count */
145
145
        __u16   bg_used_dirs_count;     /* Directories count */
146
 
        __u16   bg_pad;
 
146
        __u16   bg_flags;
147
147
        __u32   bg_reserved[3];
148
148
};
149
149
 
 
150
#define EXT2_BG_INODE_UNINIT    0x0001 /* Inode table/bitmap not initialized */
 
151
#define EXT2_BG_BLOCK_UNINIT    0x0002 /* Block bitmap not initialized */
 
152
 
150
153
/*
151
154
 * Data structures used by the directory indexing feature
152
155
 *
242
245
/*
243
246
 * ioctl commands
244
247
 */
 
248
 
 
249
/* Used for online resize */
 
250
struct ext2_new_group_input {
 
251
        __u32 group;            /* Group number for this data */
 
252
        __u32 block_bitmap;     /* Absolute block number of block bitmap */
 
253
        __u32 inode_bitmap;     /* Absolute block number of inode bitmap */
 
254
        __u32 inode_table;      /* Absolute block number of inode table start */
 
255
        __u32 blocks_count;     /* Total number of blocks in this group */
 
256
        __u16 reserved_blocks;  /* Number of reserved blocks in this group */
 
257
        __u16 unused;           /* Number of reserved GDT blocks in group */
 
258
};
 
259
 
245
260
#define EXT2_IOC_GETFLAGS               _IOR('f', 1, long)
246
261
#define EXT2_IOC_SETFLAGS               _IOW('f', 2, long)
247
262
#define EXT2_IOC_GETVERSION             _IOR('v', 1, long)
248
263
#define EXT2_IOC_SETVERSION             _IOW('v', 2, long)
 
264
#define EXT2_IOC_GETVERSION_NEW         _IOR('f', 3, long)
 
265
#define EXT2_IOC_SETVERSION_NEW         _IOW('f', 4, long)
 
266
#define EXT2_IOC_GROUP_EXTEND           _IOW('f', 7, unsigned long)
 
267
#define EXT2_IOC_GROUP_ADD              _IOW('f', 8,struct ext2_new_group_input)
249
268
 
250
269
/*
251
270
 * Structure of an inode on the disk
552
571
#define EXT2_FEATURE_COMPAT_EXT_ATTR            0x0008
553
572
#define EXT2_FEATURE_COMPAT_RESIZE_INODE        0x0010
554
573
#define EXT2_FEATURE_COMPAT_DIR_INDEX           0x0020
 
574
#define EXT2_FEATURE_COMPAT_LAZY_BG             0x0040
555
575
 
556
576
#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER     0x0001
557
577
#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE       0x0002