* restored the zone>block stuff * generalized the support for more-than-1-block bitmaps to also deal with big inodes maps in small blocks * improved pexit() to printf-like syntax; also replaced pexit() with err() or errx() where there are no reference to proto lines * unified the allocation of blocks to all use alloc_block() instead of raw malloc half of the time * removed the V2_ d2_ etc. prefixes which are obscure and obsolete While here, also * used new-form definitions, and closer to KNF style in general * used often-built-ins such as mem* or strncpy where relevant * pruned a fair amount of constants which are irrelevant Thanks to Thomas V. and Lionel who did a good amount of work with the cross-compilation stuff and made that change to be much smoother.
19 lines
724 B
C
19 lines
724 B
C
#ifndef _MKFS_MFS_TYPE_H__
|
|
#define _MKFS_MFS_TYPE_H__
|
|
|
|
/* Declaration of the V2 inode as it is on the disk (not in core). */
|
|
/* The same structure is used for V3. */
|
|
struct inode { /* V2/V3 disk inode */
|
|
uint16_t i_mode; /* file type, protection, etc. */
|
|
uint16_t i_nlinks; /* how many links to this file. */
|
|
int16_t i_uid; /* user id of the file's owner. */
|
|
uint16_t i_gid; /* group number */
|
|
uint32_t i_size; /* current file size in bytes */
|
|
uint32_t i_atime; /* when was file data last accessed */
|
|
uint32_t i_mtime; /* when was file data last changed */
|
|
uint32_t i_ctime; /* when was inode data last changed */
|
|
uint32_t i_zone[NR_TZONES]; /* zone nums for direct, ind, and dbl ind */
|
|
};
|
|
|
|
#endif
|