3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- linux-2.4.26/arch/um/fs/hostfs/externfs.c~unbreak-hostfs 2004-05-18 22:01:16.000000000 +0200
7 +++ linux-2.4.26/arch/um/fs/hostfs/externfs.c 2004-05-18 22:43:11.000000000 +0200
9 if((mount_arg != NULL) && (*mount_arg != '\0'))
12 - return(uml_strdup(mount_arg));
13 + return(uml_strdup(root));
16 struct super_block *hostfs_read_super(struct super_block *sb, void *data,
17 --- linux-2.4.26/arch/um/fs/hostfs/host_file.c~unbreak-hostfs 2004-05-18 22:01:16.000000000 +0200
18 +++ linux-2.4.26/arch/um/fs/hostfs/host_file.c 2004-05-18 22:45:17.000000000 +0200
21 char tmp[HOSTFS_BUFSIZE], *file;
23 + struct openflags flags = OPENFLAGS();
32 - printk("Impossible mode in host_open_file - r = %d, w = %d",
38 + flags = of_read(flags);
40 + flags = of_write(flags);
43 + flags = of_append(flags);
46 file = get_path(path, tmp, sizeof(tmp));
50 - err = open_filehandle(file, of_create(of_rdwr(OPENFLAGS())), mode, fh);
51 + err = open_filehandle(file, flags, 0, fh);
55 --- linux-2.4.26/arch/um/fs/hostfs/host_fs.c~unbreak-hostfs 2004-05-18 22:01:16.000000000 +0200
56 +++ linux-2.4.26/arch/um/fs/hostfs/host_fs.c 2004-05-18 22:50:11.000000000 +0200
59 const char *path[] = { jail_dir, mount, file, NULL };
66 return(host_stat_file(path, dev_out, inode_out, mode_out, nlink_out,
67 - &uid, gid_out, size_out, atime_out, mtime_out,
68 + &uid, &gid, size_out, atime_out, mtime_out,
69 ctime_out, blksize_out, blocks_out));
75 err = host_open_file(path, 1, 1, fh);
76 + if (err == -EISDIR) {
81 + err = host_open_file(path, 1, 0, fh);
90 - (*completion)(buf, err, arg);
93 + (*completion)(buf, err, arg);
101 err = write_file(fh, offset + start, buf + start, len);
104 - (*completion)((char *) buf, err, arg);
105 + (*completion)((char *) buf, err, arg);