2001-03-12 14:57:35

by Trond Myklebust

[permalink] [raw]
Subject: Re: [NFS] New files on read only NFS mount

>>>>> " " == Chris Jensen <[email protected]> writes:

>> Details please, the minimum info required being 'which kernel
>> is your client running'?
>>

> Oh yeah, whoops, sorry The server is a 586 and the client is
> 686. They're both using nfs-utils 0.2.1, under linux 2.4.0
> with NFS v3 enabled, with glibc 2.2.1 The pertinent line in
> /etc/exports is / 192.168.0.1(rw,no_root_squash)

How does the following patch work out?

Cheers,
Trond

--- fs/nfs/dir.c.orig Fri Feb 9 20:29:44 2001
+++ fs/nfs/dir.c Mon Mar 12 15:54:14 2001
@@ -1097,6 +1097,10 @@

if (!NFS_PROTO(inode)->access)
goto out;
+
+ if (error == -EROFS)
+ goto out;
+
/*
* Trust UNIX mode bits except:
*