From 4d4237de538f7c42b157dfa0ef5d711ae72d3566 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Fri, 21 May 2010 16:27:04 +0000 Subject: * do not count system inodes into quota for ext[234] (Jan Kara) --- Changelog | 1 + quotacheck.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 3d62471..e09275f 100644 --- a/Changelog +++ b/Changelog @@ -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); -- cgit v1.2.3