From e84a11d9fb7414fb1ccc8d0887868980986c91f8 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Tue, 8 Apr 2003 13:10:59 +0000 Subject: 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) --- quotacheck_v1.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'quotacheck_v1.c') 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; -- cgit v1.2.3