Whamcloud - gitweb
LU-7004 quota: make lctl set_param -P functional for quota 81/31081/5
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 6 Feb 2018 15:39:30 +0000 (10:39 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 22 Feb 2018 05:40:00 +0000 (05:40 +0000)
commit6d9df3b2c0d54b16d00b6e419c7bb958e6b54844
tree4cc849e174b5355cfe7cea0527fc4f19e95f1720
parentb11cf51be71fb4be431f1c343e4f2df426226d1a
LU-7004 quota: make lctl set_param -P functional for quota

Currently setting up quota permanently can only be done with a
command like lctl conf_param $FSNAME.quota.ost=ug. To see if those
settings take hold we examine the 'enabled' proc file located in
the quota_slave directory in the proc tree. To make this workable
with lctl set_param -P we can make the 'enabled' proc file
writable and lustre can treat the config log change from set_param
-P for quota like any other tunable to be set permanetly.

Change-Id: I6a4c1fdc9d16658930f48d21e4f79e6f36047511
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/31081
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/quota/qsd_config.c
lustre/quota/qsd_internal.h
lustre/quota/qsd_lib.c