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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux