lkml.org 
[lkml]   [1999]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Quota fix in 2.2

Hello.

Browsing my 'sent' mailbox I found out I sent you wrong patch (I already
sent you that patch and it was fixing something completly else). So now
I'm sending you proper patch. I'm sorry...

Honza.

> I'm sending you fix of small bug in quota. The problem was that if you turned user quotas
> on, opened some file, closed the file and turned group quotas on than if you did chgrp
> quota didn't take effect on that file. I know it's improbable but it's a bug. Please
> apply following patch. It is against 2.2.11.

--- linux/include/linux/quotaops.h Tue Aug 17 11:30:46 1999
+++ linux/include/linux/quotaops.h Thu Sep 9 17:11:49 1999
@@ -99,8 +99,7 @@
int error = -EDQUOT;

if (dentry->d_inode->i_sb->dq_op) {
- if (IS_QUOTAINIT(dentry->d_inode) == 0)
- dentry->d_inode->i_sb->dq_op->initialize(dentry->d_inode, -1);
+ dentry->d_inode->i_sb->dq_op->initialize(dentry->d_inode, -1);
error = dentry->d_inode->i_sb->dq_op->transfer(dentry, iattr, current->fsuid);
} else {
error = notify_change(dentry, iattr);
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.025 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site