lkml.org 
[lkml]   [2006]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectautomount nfs: mkdir_path /net/host/dir failed: Read-only file system
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-24 16:03    [W:0.037 / U:21.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site