Re: 2.2.7 NFS quota error

G. Allen Morris III (gam3@ixlabs.com)
Tue, 25 May 1999 21:26:50 -0700


I'll add it to my list of patches to send to Linus.

Allen

>>>Juan Antonio Martinez said:
> On Mon, 24 May 1999, Jan Kara wrote:
>
> > > Problem: NFS client makes open(filename,O_RDWR|O_CREAT|O_TRUNC,mode ) an
d
> > > quota isn't reevaluated correctly when file already exist
> [...]
> > >
> --- linux/fs/nfsd/vfs.c Mon Apr 12 19:03:45 1999
> +++ linux/fs/nfsd/vfs.c Sun May 23 22:13:59 1999
> @@ -252,9 +252,11 @@
> if (err)
> goto out_nfserr;
> /* N.B. Should we update the inode cache here? */
> + DQUOT_INIT(inode);
> inode->i_size = iap->ia_size;
> if (inode->i_op && inode->i_op->truncate)
> inode->i_op->truncate(inode);
> + DQUOT_DROP(inode);
> mark_inode_dirty(inode);
> put_write_access(inode);
> iap->ia_valid &= ~ATTR_SIZE;
>
> Thanks a lot. I really needed it

Yes thanks,

Allen

---------------------------------
G. Allen Morris III

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/