linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.11-rc5-mm1 nfs oddity, file creation => "no such file"
@ 2005-03-02 19:14 Helge Hafting
  2005-03-02 21:37 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Helge Hafting @ 2005-03-02 19:14 UTC (permalink / raw)
  To: linux-kernel

I observed an oddity on a nfs-mounted fs while using 2.6.11-rc5-mm1.

I tried to save a file from xfig, and got an error message about a
nonexisting file.  Now apps may have their own bugs, so I
retried in the shell:

$ cat > newfile
newfile: No such file or directory
$

Eh - of course it didn't exist - I was trying to create it!

This also resulted in "newfile" being created with size 0.
Repeating the "cat > newfile" worked fine once the zero-length
file existed.  Unfortunately, xfig always removes files before overwriting
so it couldn't save on the nfs volume at all.

File creation by "touch filename" worked flawlessly.

After this I rebooted into 2.6.11-rc3-mm1 which haven't shown this problem
so far.  There were nothing in "dmesg" when this happened, other
than a message about "mount" being older than the kernel.

I can try to recreate the problem if necessary.

Helge Hafting



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.11-rc5-mm1 nfs oddity, file creation => "no such file"
  2005-03-02 19:14 2.6.11-rc5-mm1 nfs oddity, file creation => "no such file" Helge Hafting
@ 2005-03-02 21:37 ` Andrew Morton
  2005-03-03 10:35   ` Helge Hafting
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2005-03-02 21:37 UTC (permalink / raw)
  To: Helge Hafting; +Cc: linux-kernel

Helge Hafting <helgehaf@aitel.hist.no> wrote:
>
> I observed an oddity on a nfs-mounted fs while using 2.6.11-rc5-mm1.

Could you try this please?

--- 25/fs/nfs/nfs3proc.c~nfsacl-acl-umask-handling-workaround-in-nfs-client-fix	2005-03-02 08:49:59.000000000 -0800
+++ 25-akpm/fs/nfs/nfs3proc.c	2005-03-02 08:49:59.000000000 -0800
@@ -423,6 +423,9 @@ exit:
 		if (!inode)
 			goto out;
 		status = nfs3_set_default_acl(dir, inode, mode);
+		if (status)
+			goto out;
+		return inode;
 	}
 out:
 	return ERR_PTR(status);
_


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.11-rc5-mm1 nfs oddity, file creation => "no such file"
  2005-03-02 21:37 ` Andrew Morton
@ 2005-03-03 10:35   ` Helge Hafting
  0 siblings, 0 replies; 3+ messages in thread
From: Helge Hafting @ 2005-03-03 10:35 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Helge Hafting, linux-kernel

Andrew Morton wrote:

>Helge Hafting <helgehaf@aitel.hist.no> wrote:
>  
>
>>I observed an oddity on a nfs-mounted fs while using 2.6.11-rc5-mm1.
>>    
>>
>
>Could you try this please?
>
>--- 25/fs/nfs/nfs3proc.c~nfsacl-acl-umask-handling-workaround-in-nfs-client-fix	2005-03-02 08:49:59.000000000 -0800
>+++ 25-akpm/fs/nfs/nfs3proc.c	2005-03-02 08:49:59.000000000 -0800
>@@ -423,6 +423,9 @@ exit:
> 		if (!inode)
> 			goto out;
> 		status = nfs3_set_default_acl(dir, inode, mode);
>+		if (status)
>+			goto out;
>+		return inode;
> 	}
> out:
> 	return ERR_PTR(status);
>_
>
>  
>
"cat > some_new_file" worked fine on NFS with this patch.  I'll keep using
nfs at work with this.

Helge Hafting

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-03 10:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-02 19:14 2.6.11-rc5-mm1 nfs oddity, file creation => "no such file" Helge Hafting
2005-03-02 21:37 ` Andrew Morton
2005-03-03 10:35   ` Helge Hafting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).