summaryrefslogtreecommitdiff
path: root/convertquota.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-05-04 08:43:25 +0000
committerjkar8572 <jkar8572>2001-05-04 08:43:25 +0000
commit3dbd1e5a75e551d93ced9b3f698c29be91261415 (patch)
tree3570e31037e633f723b25e0320d71748ec4ec09c /convertquota.c
parent79d6138d6e5764429d0a4e245f143ab62625ce3b (diff)
Fixed infinity loop for XFS repquota.
Diffstat (limited to 'convertquota.c')
-rw-r--r--convertquota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/convertquota.c b/convertquota.c
index 6d3afbf..d9a95bb 100644
--- a/convertquota.c
+++ b/convertquota.c
@@ -72,7 +72,7 @@ void parse_options(int argcnt, char **argstr)
mntpoint = argstr[optind];
}
-int convert_dquot(struct dquot *dquot)
+int convert_dquot(struct dquot *dquot, char *name)
{
struct dquot newdquot;
@@ -88,8 +88,8 @@ int convert_dquot(struct dquot *dquot)
newdquot.dq_dqb.dqb_btime = dquot->dq_dqb.dqb_btime;
newdquot.dq_dqb.dqb_itime = dquot->dq_dqb.dqb_itime;
if (qn->qh_ops->commit_dquot(&newdquot) < 0) {
- errstr(_("Can't commit dquot for id %u: %s\n"),
- (uint)dquot->dq_id, strerror(errno));
+ errstr(_("Can't commit dquot for id %u (%s): %s\n"),
+ (uint)dquot->dq_id, name, strerror(errno));
return -1;
}
return 0;