lkml.org 
[lkml]   [1999]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: 2.2.7 NFS quota error
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:51    [W:0.020 / U:60.432 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site