All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank van Maarseveen <frankvm@frankvm.com>
To: Thomas Zeitlhofer <tzeitlho+lkml@nt.tuwien.ac.at>
Cc: linux-kernel@vger.kernel.org
Subject: automount nfs: mkdir_path /net/host/dir failed: Read-only file system
Date: Tue, 24 Oct 2006 16:01:25 +0200	[thread overview]
Message-ID: <20061024140125.GA12781@janus> (raw)
In-Reply-To: <20061023092329.GA5231@swan.nt.tuwien.ac.at>

On Mon, Oct 23, 2006 at 11:23:29AM +0200, Thomas Zeitlhofer wrote:
> 
> there is a problem in 2.6.18/.1 when mkdir is called for an existing
> directory on a read-only mounted NFS filesystem.
[...]
> As a consequence of 1), autofs does not work with mountpoints on NFS

I'm hitting this regression too

> So please consider this patch for the next -stable release:
> 
> diff --git a/fs/namei.c b/fs/namei.c
> index 432d6bc..5201d77 100644
> --- a/fs/namei.c
> +++ b/fs/namei.c
> @@ -1774,8 +1774,6 @@ struct dentry *lookup_create(struct name
>  	if (nd->last_type != LAST_NORM)
>  		goto fail;
>  	nd->flags &= ~LOOKUP_PARENT;
> -	nd->flags |= LOOKUP_CREATE;
> -	nd->intent.open.flags = O_EXCL;
>  
>  	/*
>  	 * Do the final lookup.

yep, fixes it for me. Thankx.

-- 
Frank

      parent reply	other threads:[~2006-10-24 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23  9:23 mkdir on read-only NFS is broken in 2.6.18 Thomas Zeitlhofer
2006-10-23 10:33 ` Trond Myklebust
2006-10-23 13:14   ` Thomas Zeitlhofer
2006-10-24 14:01 ` Frank van Maarseveen [this message]

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=20061024140125.GA12781@janus \
    --to=frankvm@frankvm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tzeitlho+lkml@nt.tuwien.ac.at \
    /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.