[LU-10030] add native lfs tools support for project quota Created: 25/Sep/17 Updated: 17/Oct/19 Resolved: 04/Jan/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0, Lustre 2.12.0, Lustre 2.10.4 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Wang Shilong (Inactive) | Assignee: | Wang Shilong (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||
| Description |
|
Currently, we are using chattr/lsattr for project quota 1)Client side need patched e2fsprogs or latest upstream So we'd better add native lfs tools for project quota. |
| Comments |
| Comment by Gerrit Updater [ 25/Sep/17 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/29190 |
| Comment by Peter Jones [ 25/Sep/17 ] |
|
Thanks |
| Comment by James A Simmons [ 29/Sep/17 ] |
|
Is this a client feature or server? |
| Comment by Wang Shilong (Inactive) [ 30/Sep/17 ] |
|
This is only Client side. |
| Comment by Nathan Rutman [ 24/Oct/17 ] |
|
Currently this is kind of a mess - chattr -P depends on special build, sanity-quota silently disables project quota tests without it, the manual doesn't explain that a special chattr is needed. This patch is a good improvement, but it doesn't quite finish - i.e. remove chattr from sanity-quota, link in LUDOC ticket for the manual fixes. |
| Comment by Wang Shilong (Inactive) [ 24/Oct/17 ] |
|
Hello Nathan Rutman, Thanks for good suggestion, link has been done, and will remove chattr from sanity-quota when refreshing patch. Thanks, |
| Comment by Gerrit Updater [ 14/Nov/17 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/30072 |
| Comment by Gerrit Updater [ 22/Nov/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30072/ |
| Comment by Gerrit Updater [ 04/Jan/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29190/ |
| Comment by Peter Jones [ 04/Jan/18 ] |
|
Looks like this is all landed for 2.11 |
| Comment by Gerrit Updater [ 20/Apr/18 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/32098 |
| Comment by Gerrit Updater [ 20/Apr/18 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/32099 |
| Comment by Gerrit Updater [ 20/Apr/18 ] |
|
Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/32106 |
| Comment by Gerrit Updater [ 20/Apr/18 ] |
|
Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/32107 |
| Comment by Gerrit Updater [ 21/Apr/18 ] |
|
Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/32112 |
| Comment by Gerrit Updater [ 03/May/18 ] |
|
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/32099/ |
| Comment by Gerrit Updater [ 03/May/18 ] |
|
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/32098/ |
| Comment by Gerrit Updater [ 17/Jul/18 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/32825 |
| Comment by Alexander Mitin [ 18/Jul/18 ] |
|
The wrong constant is used in the implementation of this feature. File: lustre/utils/lfs_project.c When process fsx.fsx_xflags bits the following functions use the wrong constant value to check the project inherit flag.
These functions are using FS_IOC_FSGETXATTR and FS_IOC_FSGETXATTR ioctl calls to get or set fsxattr structure. Currently, to process fsx_xflags field from the fsxattr structure these functions use the constant LL_PROJINHERIT_FL, which is defined as the following: #define LL_PROJINHERIT_FL 0x20000000 However, when processing fsx_xflags from the fsxattr structure , the different constant should be used: FS_XFLAG_PROJINHERIT, which is defined in linux/fs.h file as following: #define FS_XFLAG_PROJINHERIT 0x00000200 /* create with parents projid */ See the following https://github.com/torvalds/linux/blob/master/include/uapi/linux/fs.h#L155 https://github.com/torvalds/linux/blob/master/include/uapi/linux/fs.h#L178
|
| Comment by Wang Shilong (Inactive) [ 18/Jul/18 ] |
|
Hi Alexander Mitin, thanks for pointing this out, we should fix this. Thanks, |
| Comment by Wang Shilong (Inactive) [ 18/Jul/18 ] |
|
Hi Alexander Mitin, I pushed a proposed patch for this problem: Thanks, |
| Comment by Gerrit Updater [ 19/Jul/18 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/32840 |
| Comment by Gerrit Updater [ 05/Oct/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32825/ |
| Comment by Gerrit Updater [ 29/Oct/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32107/ |
| Comment by Gerrit Updater [ 30/Oct/18 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33512 |
| Comment by Gerrit Updater [ 13/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32112/ |
| Comment by Gerrit Updater [ 17/Oct/19 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36469 |