[LU-3383] Wrong lfs quota output for inode quota over isoftlimit Created: 23/May/13  Updated: 13/Sep/13  Resolved: 23/Jul/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.5, Lustre 2.5.0
Fix Version/s: Lustre 2.4.1, Lustre 2.5.0

Type: Bug Priority: Minor
Reporter: Patrick Valentin (Inactive) Assignee: Niu Yawei (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 8376

 Description   

There is a small problem in lfs print_quota() function (lustre/utils/lfs.c:2487 in master) that can confuse output of lfs quota when user reaches isoftlimit and dqb_itime is set :

                if (dqb->dqb_ihardlimit &&
                    dqb->dqb_curinodes >= dqb->dqb_ihardlimit) {
                        iover = 1;
                } else if (dqb->dqb_isoftlimit && dqb->dqb_itime) {
                        if (dqb->dqb_btime > now) {
                            ^^^^^^^^^^^^^^^^^^^^
                                iover = 2;
                        } else {
                                iover = 3;
                        }
                }

The test should be made on dbq_itime (inode time), not on dbq_dtime (data time).

I will propose a patch to address this typo issue.



 Comments   
Comment by Peter Jones [ 23/May/13 ]

Niu

Could you please take care of this one?

Thanks

Peter

Comment by Niu Yawei (Inactive) [ 24/May/13 ]

Thank you, Patrick. Please upload the patch to gerrit for review, thanks.

Comment by Patrick Valentin (Inactive) [ 24/May/13 ]

patch for master available at:
http://review.whamcloud.com/6444

Comment by Niu Yawei (Inactive) [ 23/Jul/13 ]

patch landed for 2.5

Generated at Sat Feb 10 01:33:26 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.