Messages in this thread Patch in this message | | | Date | Thu, 21 May 1998 13:16:15 +0300 (EEST) | From | Meelis Roos <> | Subject | quota 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
| |