kernels/linux-2.4.0/scripts/cramfs/mkcramfs.c
/* Returns sizeof(struct cramfs_super), which includes the root inode. */
Returns sizeof(struct cramfs_super), which includes the root inode.
Returns sizeof ( struct cramfs_super ) which includes the root inode .
static unsigned int write_superblock(struct entry *root, char *base)
{
	struct cramfs_super *super = (struct cramfs_super *) base;
	unsigned int offset = sizeof(struct cramfs_super);
	super->magic = CRAMFS_MAGIC;
	super->flags = 0;
	super->size = 0x10000;
	memcpy(super->signature, CRAMFS_SIGNATURE, sizeof(super->signature));
	set_random(super->fsid, sizeof(super->fsid));
	strncpy(super->name, "Compressed", sizeof(super->name));
	super->root.mode = root->mode;
	super->root.uid = root->uid;
	super->root.gid = root->gid;
	super->root.size = root->size;
	super->root.offset = offset >> 2;
	return offset;
}
static unsigned int write_superblock ( struct entry * root , char * base ) { struct cramfs_super * super = ( struct cramfs_super * ) base ; unsigned int offset = sizeof ( struct cramfs_super ) ; super -> magic = CRAMFS_MAGIC ; super -> flags = 0 ; super -> size = 0x10000 ; memcpy ( super -> signature , CRAMFS_SIGNATURE , sizeof ( super -> signature ) ) ; set_random ( super -> fsid , sizeof ( super -> fsid ) ) ; strncpy ( super -> name , " " , sizeof ( super -> name ) ) ; super -> root . mode = root -> mode ; super -> root . uid = root -> uid ; super -> root . gid = root -> gid ; super -> root . size = root -> size ; super -> root . offset = offset >> 2 ; return offset ; }
Returns sizeof(struct cramfs_super), which includes the root inode.
Returns sizeof ( struct cramfs_super ) which includes the root inode .
/* Note: 0x10000 is meaningless, which is a bug; but
	   super->size is never used anyway. */