rem: TRACE(("devfs_write: vnode 0x%x, cookie 0x%x, pos 0x%x 0x%x, len 0x%x\n", v, cookie, pos, len));
add: TRACE(("devfs_write: vnode %p, cookie %p, pos %Ld, len %p\n", vnode, cookie, pos, len)); INSANE((":%p:%p:%p:%p\n",vnode->all_next,vnode->name,vnode->redir_vnode,vnode->parent));
context: devfs_write(fs_cookie _fs, fs_vnode _v, file_cookie _cookie, const void *buf, 		off_t pos, size_t *len){	struct devfs_vnode *v = _v;	struct devfs_cookie *cookie = _cookie;		TRACE(("devfs_write: vnode 0x%x, cookie 0x%x, pos 0x%x 0x%x, len 0x%x\n", v, cookie, pos, len));	if (v->stream.type == STREAM_TYPE_DEVICE) {		struct devfs_part_map *part_map = v->stream.u.dev.part_map;		if (part_map) {			if (pos < 0)				pos = 0;			if (pos > part_map->size)				return 0;			*len = min(*len, part_map->size - pos);			pos += part_map->offset;		}		return v->stream.u.dev.calls->write(cookie->u.dev.dcookie, pos, buf, len);	}	return EROFS;}