-
Wang Shilong authored
Currently, we are using chattr/lsattr for project quota interface, this have some problems: 1)Client side need patched e2fsprogs or latest upstream e2fsprogs. 2)Project quota will be no longer osd-ldiskfs based, ZFS too, zfs guys might dislike ldiskfs tool dependency for them. 3)customers argue chattr might be a little dangerous. So this patch add native lfs tools for project quota. usage: project [-p id] [-s] [-r] <file|directory..> set project ID and/or inherit flag for specified file(s) or directory. project [-d|-r [-0]] <file|directory...> list project ID and flags on file(s) or directory, print outliers project -c [-d|-r [-p id] [-0]] <file|directory..> check project ID and flags on file(s) or directory, print outliers project -C [-r] [-k] <file|directory..> clear the project inherit flag and ID on the file or directory Test-Parameters: testlist=sanity-quota,sanity-quota,sanity-quota,\ sanity-quota clientdistro=el7 serverdistro=el7 \ ostfilesystemtype=ldiskfs mdtfilesystemtype=ldiskfs Lustre-change: https://review.whamcloud.com/29190 Lustre-commit: 022c5a9a Signed-off-by:
Wang Shilong <wshilong@ddn.com> Change-Id: I45960fb8fbd12e22a654792fba517896c0447447 Reviewed-by:
Andreas Dilger <andreas.dilger@intel.com> Reviewed-by:
Fan Yong <fan.yong@intel.com> Reviewed-by:
Oleg Drokin <oleg.drokin@intel.com> Signed-off-by:
Minh Diep <minh.diep@intel.com> Reviewed-on: https://review.whamcloud.com/32098 Tested-by: Jenkins Tested-by:
Maloo <hpdd-maloo@intel.com> Reviewed-by:
John L. Hammond <john.hammond@intel.com>
Wang Shilong authoredCurrently, we are using chattr/lsattr for project quota interface, this have some problems: 1)Client side need patched e2fsprogs or latest upstream e2fsprogs. 2)Project quota will be no longer osd-ldiskfs based, ZFS too, zfs guys might dislike ldiskfs tool dependency for them. 3)customers argue chattr might be a little dangerous. So this patch add native lfs tools for project quota. usage: project [-p id] [-s] [-r] <file|directory..> set project ID and/or inherit flag for specified file(s) or directory. project [-d|-r [-0]] <file|directory...> list project ID and flags on file(s) or directory, print outliers project -c [-d|-r [-p id] [-0]] <file|directory..> check project ID and flags on file(s) or directory, print outliers project -C [-r] [-k] <file|directory..> clear the project inherit flag and ID on the file or directory Test-Parameters: testlist=sanity-quota,sanity-quota,sanity-quota,\ sanity-quota clientdistro=el7 serverdistro=el7 \ ostfilesystemtype=ldiskfs mdtfilesystemtype=ldiskfs Lustre-change: https://review.whamcloud.com/29190 Lustre-commit: 022c5a9a Signed-off-by:
Wang Shilong <wshilong@ddn.com> Change-Id: I45960fb8fbd12e22a654792fba517896c0447447 Reviewed-by:
Andreas Dilger <andreas.dilger@intel.com> Reviewed-by:
Fan Yong <fan.yong@intel.com> Reviewed-by:
Oleg Drokin <oleg.drokin@intel.com> Signed-off-by:
Minh Diep <minh.diep@intel.com> Reviewed-on: https://review.whamcloud.com/32098 Tested-by: Jenkins Tested-by:
Maloo <hpdd-maloo@intel.com> Reviewed-by:
John L. Hammond <john.hammond@intel.com>