automount nfs: mkdir_path /net/host/dir failed: Read-only file system

From: Frank van Maarseveen
Date: Tue Oct 24 2006 - 10:01:48 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/