blob: c05d43e22352ed7d094db34c8d9a03569cf83ac2 [file] [log] [blame]
Mike Frysinger1fd98e02005-05-09 22:10:42 +00001/*
2 * e2image.h --- header file describing the ext2 image format
Tim Rikerc1ef7bd2006-01-25 00:08:53 +00003 *
Mike Frysinger1fd98e02005-05-09 22:10:42 +00004 * Copyright (C) 2000 Theodore Ts'o.
5 *
6 * Note: this uses the POSIX IO interfaces, unlike most of the other
Tim Rikerc1ef7bd2006-01-25 00:08:53 +00007 * functions in this library. So sue me.
Mike Frysinger1fd98e02005-05-09 22:10:42 +00008 *
9 * %Begin-Header%
10 * This file may be redistributed under the terms of the GNU Public
11 * License.
12 * %End-Header%
13 */
14
15
16struct ext2_image_hdr {
17 __u32 magic_number; /* This must be EXT2_ET_MAGIC_E2IMAGE */
18 char magic_descriptor[16]; /* "Ext2 Image 1.0", w/ null padding */
19 char fs_hostname[64];/* Hostname of machine of image */
20 char fs_netaddr[32]; /* Network address */
21 __u32 fs_netaddr_type;/* 0 = IPV4, 1 = IPV6, etc. */
22 __u32 fs_device; /* Device number of image */
23 char fs_device_name[64]; /* Device name */
24 char fs_uuid[16]; /* UUID of filesystem */
25 __u32 fs_blocksize; /* Block size of the filesystem */
26 __u32 fs_reserved[8];
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000027
Mike Frysinger1fd98e02005-05-09 22:10:42 +000028 __u32 image_device; /* Device number of image file */
29 __u32 image_inode; /* Inode number of image file */
30 __u32 image_time; /* Time of image creation */
31 __u32 image_reserved[8];
32
33 __u32 offset_super; /* Byte offset of the sb and descriptors */
34 __u32 offset_inode; /* Byte offset of the inode table */
35 __u32 offset_inodemap; /* Byte offset of the inode bitmaps */
36 __u32 offset_blockmap; /* Byte offset of the inode bitmaps */
37 __u32 offset_reserved[8];
38};
39
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000040
41
42
43
44
45
46
47
48
49
50
51