summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2010-05-21 16:27:04 +0000
committerjkar8572 <jkar8572>2010-05-21 16:27:04 +0000
commit4d4237de538f7c42b157dfa0ef5d711ae72d3566 (patch)
treed9621938924096fb28c02f0e963c5b70f5571cbb
parent5b9c30f584a4f36aceade621341c084b840dfaff (diff)
* do not count system inodes into quota for ext[234] (Jan Kara)
-rw-r--r--Changelog1
-rw-r--r--quotacheck.c6
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);