linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH] More hostfs breakage
@ 2004-06-05  1:01 Matt Zimmerman
  2004-06-06 15:31 ` Henrik Nordstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Zimmerman @ 2004-06-05  1:01 UTC (permalink / raw)
  To: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 420 bytes --]

Even after applying Henrik's patches, hostfs was still not working for me.
I tracked the problem down to this; I'm not exactly sure why it works this
way (why does it always try to open the file read/write first?), but this
got it working again for me so far.

If this is really the right way to go about this, then it needs to check for
other things as well (EROFS?), but it doesn't seem right...

-- 
 - mdz

[-- Attachment #1.2: hostfs-perms.diff --]
[-- Type: text/plain, Size: 371 bytes --]

--- kernel-source-2.4.25/arch/um/fs/hostfs/host_fs.c~	2004-06-04 17:56:52.000000000 -0700
+++ kernel-source-2.4.25/arch/um/fs/hostfs/host_fs.c	2004-06-04 17:59:04.000000000 -0700
@@ -146,7 +146,7 @@
 	    kfree(fh);
 	    return NULL;
 	}
-	if (err == -EPERM)
+	if (err == -EPERM || err == -EACCES)
 	    err = host_open_file(path, 1, 0, fh);
 	if(err)
 		goto out_free;

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-06 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-05  1:01 [uml-devel] [PATCH] More hostfs breakage Matt Zimmerman
2004-06-06 15:31 ` Henrik Nordstrom
2004-06-06 18:03   ` Matt Zimmerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox