ChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c:
imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, ext2_fs.h,
Makefile.in: New file that has routines that save ext2fs metadata to a
file.
ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned.
e2image.h: New file which defines the file format for the ext2 image
file. (Saved copy of ext2 metadata to a file as a saving throw
against worst-case damage.)
ChangeLog, Makefile.in, e2image.c:
e2image.c, Makefile.in: New program which saves ext2 metadata to a
file for people who need a last-ditch saving throw.
2000-11-12 22:32:20 +03:00
|
|
|
/*
|
|
|
|
* e2image.h --- header file describing the ext2 image format
|
|
|
|
*
|
|
|
|
* Copyright (C) 2000 Theodore Ts'o.
|
|
|
|
*
|
|
|
|
* Note: this uses the POSIX IO interfaces, unlike most of the other
|
|
|
|
* functions in this library. So sue me.
|
|
|
|
*
|
|
|
|
* %Begin-Header%
|
|
|
|
* This file may be redistributed under the terms of the GNU Public
|
|
|
|
* License.
|
|
|
|
* %End-Header%
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
struct ext2_image_hdr {
|
|
|
|
__u32 magic_number; /* This must be EXT2_ET_MAGIC_E2IMAGE */
|
|
|
|
char magic_descriptor[16]; /* "Ext2 Image 1.0", w/ null padding */
|
2001-02-08 08:45:17 +03:00
|
|
|
char fs_hostname[64];/* Hostname of machine of image */
|
ChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c:
imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, ext2_fs.h,
Makefile.in: New file that has routines that save ext2fs metadata to a
file.
ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned.
e2image.h: New file which defines the file format for the ext2 image
file. (Saved copy of ext2 metadata to a file as a saving throw
against worst-case damage.)
ChangeLog, Makefile.in, e2image.c:
e2image.c, Makefile.in: New program which saves ext2 metadata to a
file for people who need a last-ditch saving throw.
2000-11-12 22:32:20 +03:00
|
|
|
char fs_netaddr[32]; /* Network address */
|
|
|
|
__u32 fs_netaddr_type;/* 0 = IPV4, 1 = IPV6, etc. */
|
|
|
|
__u32 fs_device; /* Device number of image */
|
2001-05-03 08:02:29 +04:00
|
|
|
char fs_device_name[64]; /* Device name */
|
ChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c:
imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, ext2_fs.h,
Makefile.in: New file that has routines that save ext2fs metadata to a
file.
ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned.
e2image.h: New file which defines the file format for the ext2 image
file. (Saved copy of ext2 metadata to a file as a saving throw
against worst-case damage.)
ChangeLog, Makefile.in, e2image.c:
e2image.c, Makefile.in: New program which saves ext2 metadata to a
file for people who need a last-ditch saving throw.
2000-11-12 22:32:20 +03:00
|
|
|
char fs_uuid[16]; /* UUID of filesystem */
|
2001-05-03 08:02:29 +04:00
|
|
|
__u32 fs_blocksize; /* Block size of the filesystem */
|
ChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c:
imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, ext2_fs.h,
Makefile.in: New file that has routines that save ext2fs metadata to a
file.
ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned.
e2image.h: New file which defines the file format for the ext2 image
file. (Saved copy of ext2 metadata to a file as a saving throw
against worst-case damage.)
ChangeLog, Makefile.in, e2image.c:
e2image.c, Makefile.in: New program which saves ext2 metadata to a
file for people who need a last-ditch saving throw.
2000-11-12 22:32:20 +03:00
|
|
|
__u32 fs_reserved[8];
|
|
|
|
|
|
|
|
__u32 image_device; /* Device number of image file */
|
|
|
|
__u32 image_inode; /* Inode number of image file */
|
|
|
|
__u32 image_time; /* Time of image creation */
|
|
|
|
__u32 image_reserved[8];
|
|
|
|
|
|
|
|
__u32 offset_super; /* Byte offset of the sb and descriptors */
|
|
|
|
__u32 offset_inode; /* Byte offset of the inode table */
|
|
|
|
__u32 offset_inodemap; /* Byte offset of the inode bitmaps */
|
|
|
|
__u32 offset_blockmap; /* Byte offset of the inode bitmaps */
|
|
|
|
__u32 offset_reserved[8];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|