From f815778d25fde0c22f090df56341eb7ba1ff1a35 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 12 Jun 2008 23:13:24 +0300 Subject: [PATCH] fs quota: message/inode values and limits were set wrong, except for Solaris --HG-- branch : HEAD --- src/plugins/quota/quota-fs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/quota/quota-fs.c b/src/plugins/quota/quota-fs.c index b27f51f209..94615bb3cd 100644 --- a/src/plugins/quota/quota-fs.c +++ b/src/plugins/quota/quota-fs.c @@ -455,7 +455,7 @@ fs_quota_get_linux(struct fs_quota_root *root, bool group, bool bytes, *limit_r = dqblk.dqb_bsoftlimit * 1024; } else { *value_r = dqblk.dqb_curinodes; - *value_r = dqblk.dqb_isoftlimit; + *limit_r = dqblk.dqb_isoftlimit; } } return 1; @@ -488,7 +488,7 @@ fs_quota_get_bsdaix(struct fs_quota_root *root, bool group, bool bytes, *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE; } else { *value_r = dqblk.dqb_curinodes; - *value_r = dqblk.dqb_isoftlimit; + *limit_r = dqblk.dqb_isoftlimit; } return 1; } @@ -517,7 +517,7 @@ fs_quota_get_hpux(struct fs_quota_root *root, bool bytes, *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE; } else { *value_r = dqblk.dqb_curinodes; - *value_r = dqblk.dqb_isoftlimit; + *limit_r = dqblk.dqb_isoftlimit; } return 1; } @@ -546,7 +546,7 @@ fs_quota_get_solaris(struct fs_quota_root *root, bool bytes, *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE; } else { *value_r = dqblk.dqb_curfiles; - *value_r = dqblk.dqb_fsoftlimit; + *limit_r = dqblk.dqb_fsoftlimit; } return 1; } -- 2.47.3