rem: new_vnode->stream.type = STREAM_TYPE_FILE; new_vnode->stream.u.file.start = bootdir + entry[i].be_offset * PAGE_SIZE;
add: new_vnode->stream.type = S_IFREG; new_vnode->stream.u.file.start = bootdir + entry[i].be_offset * B_PAGE_SIZE;
context: bootfs_create_vnode_tree(struct bootfs *fs, struct bootfs_vnode *root){	int i;	boot_entry *entry;	int err;	struct bootfs_vnode *new_vnode;	struct bootfs_vnode *dir;	char path[SYS_MAX_PATH_LEN];	char *leaf;	entry = (boot_entry *)bootdir;	for (i = 0; i < BOOTDIR_MAX_ENTRIES; i++) {		if(entry[i].be_type != BE_TYPE_NONE && entry[i].be_type != BE_TYPE_DIRECTORY) {			strncpy(path, entry[i].be_name, SYS_MAX_PATH_LEN-1);			path[SYS_MAX_PATH_LEN-1] = '\0';			dir = bootfs_create_path(fs, path, root, &leaf);			if(!dir)				continue;			new_vnode = bootfs_create_vnode(fs, leaf);			if(new_vnode == NULL)				return ENOMEM;			// set up the new node			new_vnode->stream.type = STREAM_TYPE_FILE;			new_vnode->stream.u.file.start = bootdir + entry[i].be_offset * PAGE_SIZE;			new_vnode->stream.u.file.len = entry[i].be_vsize;			dprintf("bootfs_create_vnode_tree: added entry '%s', start %p, len 0x%Lx\n", new_vnode->name,				new_vnode->stream.u.file.start, new_vnode->stream.u.file.len);			// insert it into the parent dir			bootfs_insert_in_dir(dir, new_vnode);			hash_insert(fs->vnode_list_hash, new_vnode);		}	}	return 0;}