summaryrefslogtreecommitdiff
path: root/quotacheck_v1.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2003-04-08 13:10:59 +0000
committerjkar8572 <jkar8572>2003-04-08 13:10:59 +0000
commite84a11d9fb7414fb1ccc8d0887868980986c91f8 (patch)
tree7a9f355fab11424d6abcf8718a1bb62a4d1e5b66 /quotacheck_v1.c
parent2158ccb64cca134fe74d42199a68a965b93ff4dd (diff)
Quotacheck now does not add empty user structures in old quota format (Jan Kasprzak)
Quotacheck now remembers only hardlinked files and not all inodes with n_link > 1 (Jan Kara, Jan Kasprzak)
Diffstat (limited to 'quotacheck_v1.c')
-rw-r--r--quotacheck_v1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/quotacheck_v1.c b/quotacheck_v1.c
index 7fe8012..1f583f7 100644
--- a/quotacheck_v1.c
+++ b/quotacheck_v1.c
@@ -34,6 +34,11 @@ static void load_dquots(char *filename, int fd, int type)
(uint) id);
break;
}
+ if (ddqblk.dqb_bhardlimit == 0
+ && ddqblk.dqb_bsoftlimit == 0
+ && ddqblk.dqb_ihardlimit == 0
+ && ddqblk.dqb_isoftlimit == 0)
+ continue;
dquot = add_dquot(id, type);
udq = &dquot->dq_dqb;
udq->dqb_bhardlimit = ddqblk.dqb_bhardlimit;