diff options
author | jkar8572 <jkar8572> | 2010-05-21 16:27:04 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2010-05-21 16:27:04 +0000 |
commit | 4d4237de538f7c42b157dfa0ef5d711ae72d3566 (patch) | |
tree | d9621938924096fb28c02f0e963c5b70f5571cbb | |
parent | 5b9c30f584a4f36aceade621341c084b840dfaff (diff) |
* do not count system inodes into quota for ext[234] (Jan Kara)
-rw-r--r-- | Changelog | 1 | ||||
-rw-r--r-- | quotacheck.c | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,5 @@ Changes in quota-tools from 3.17 to 4.00-pre2 +* do not count system inodes into quota for ext[234] (Jan Kara) * improve detection of XFS kernel quota interface (Jan Kara) * support of GFS2 filesystem (Christoph Hellwig) * avoid memory corruption of NULL address (Petr Pisar) diff --git a/quotacheck.c b/quotacheck.c index 0e9bac9..8853491 100644 --- a/quotacheck.c +++ b/quotacheck.c @@ -455,8 +455,10 @@ static int ext2_direct_scan(char *device) return -1; } - while ((long)i_num) { - if (inode.i_links_count) { + while (i_num) { + if ((i_num == EXT2_ROOT_INO || + i_num >= EXT2_FIRST_INO(fs->super)) && + inode.i_links_count) { debug(FL_DEBUG, _("Found i_num %ld, blocks %ld\n"), (long)i_num, (long)inode.i_blocks); if (flags & FL_VERBOSE) blit(NULL); |