All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Zimmerman <mdz@debian.org>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] More hostfs breakage
Date: Fri, 4 Jun 2004 18:01:03 -0700	[thread overview]
Message-ID: <20040605010103.GA32113@alcor.net> (raw)


[-- 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 --]

             reply	other threads:[~2004-06-05  1:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-05  1:01 Matt Zimmerman [this message]
2004-06-06 15:31 ` [uml-devel] [PATCH] More hostfs breakage Henrik Nordstrom
2004-06-06 18:03   ` Matt Zimmerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040605010103.GA32113@alcor.net \
    --to=mdz@debian.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.