Whamcloud - gitweb
LU-1818 quota: en/disable quota enforcement via conf_param
authorNiu Yawei <niu@whamcloud.com>
Tue, 4 Sep 2012 03:45:55 +0000 (11:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2012 02:37:28 +0000 (22:37 -0400)
commitf52ece3201af131a7bb8a7b2766d3f0a98c00fca
treebb1f5ec460bdb37967417a9773e2988d5d3a1a7c
parent2eeb94d018a1ace05443e5349a29eb00f7090107
LU-1818 quota: en/disable quota enforcement via conf_param

In the new quota architecture, quota is enabled/disabled
per-filesystem, by 'lctl conf_param':

lctl conf_param $FSNAME.quota.$POOLNAME=$VAL

$FSNAME  : filesystem name;
$POOLNAME: 'mdt' (for meta pool) or 'ost' (for data pool);
$VAL     : 'none' - disable both,
           'u'    - enable user quota,
           'g'    - enable group quota,
           'ug'   - enable both;

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I89ef9fc1a067981cf7caac29c8311b75054c91fe
Reviewed-on: http://review.whamcloud.com/3850
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/lquota.h
lustre/include/lustre_param.h
lustre/mgs/mgs_llog.c
lustre/obdclass/obd_config.c