lkml.org 
[lkml]   [1998]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectquota patch for 2.1.101
After quota changes in 2.1.102, one cannot start using quotas from
scratch (i.e. touch quota.use; touch quota.group etc).

When quota file is empty or has invalid size, dcache is corrupted (iput
vs dput). This causes kernel messages about iput and aliases and shows the
quota filein question wrong (I saw a directory and a symlink instead of
regular file).

This is against 2.1.101 but there seem to be no changes to this fragment
in 102 and 103 so it should apply clean.

Thanks to Bill Hawes for guiding me to the right direction about the iput
messages.

--- linux/fs/dquot.c.orig Fri May 15 19:05:04 1998
+++ linux/fs/dquot.c Thu May 21 12:49:44 1998
@@ -1169,7 +1169,7 @@
}

if (inode->i_size == 0 || (inode->i_size % sizeof(struct dqblk)) != 0) {
- iput(inode);
+ dput(dentry);
return(-EINVAL);
}

---
Meelis Roos (mroos@tartu.cyber.ee)





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.030 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site