[LU-7506] lfs quota -h should support petabytes output Created: 01/Dec/15  Updated: 12/May/16  Resolved: 07/Jan/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.5.3
Fix Version/s: Lustre 2.8.0

Type: Improvement Priority: Minor
Reporter: Mahmoud Hanafi Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Rank (Obsolete): 9223372036854775807

 Description   

lfs quota -h

should support petabytes it currently only supports terabytes.

Example

pfe23 ~ # lfs quota -h -u xxxxx /nobackupp8
Disk quotas for user xxxx (uid ####):
     Filesystem    used   quota   limit   grace   files   quota   limit   grace
    /nobackupp8   1576T   1863T   2049T       - 5942721  10000000 15000000


 Comments   
Comment by Peter Jones [ 01/Dec/15 ]

Emoly

Could you please help with this one?

Thanks

Peter

Comment by Gerrit Updater [ 03/Dec/15 ]

Emoly Liu (emoly.liu@intel.com) uploaded a new patch: http://review.whamcloud.com/17441
Subject: LU-7506 lfs: "lfs quota -h" should support petabytes output
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cc0c201b3167d3ccf5f439086ec8c67a23ee02af

Comment by Herbert Yeung [ 05/Dec/15 ]

Two additional requests related to the first:

1. Please allow setting of petabyte quotas using P similar to G and T.
Eg. lfs setquota -u <user> 1P 2P 10000000 15000000 /nobackupp8

2. If it is straightforward, please allow setting of non-integer quotas. If I want to set 1.8P exactly, I have to calculate it manually using the next lower unit to get an approximation.
Eg. lfs setquota -u <user> 1.8P 2P 10000000 15000000 /nobackupp8

Comment by Emoly Liu [ 07/Dec/15 ]

OK, Herbert, I will update the patch for meet your requirements.

Comment by Gerrit Updater [ 07/Jan/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17441/
Subject: LU-7506 lfs: "lfs quota -h" should support petabytes output
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1dbf71d8faaaf0c933f47c5d81871fe3f3fdcf43

Comment by Joseph Gmitter (Inactive) [ 07/Jan/16 ]

Landed for 2.8.0

Generated at Sat Feb 10 02:09:29 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.