diff options
-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); |