即使指定了特定的qtree名称、也会自动创建默认树规则
适用场景
ONTAP 9
问题描述
ONTAP API联机文档页面指出:
qtree.name - Qtree for which to create the rule. For default tree rules, the qtree name must be specified as "".
但是、在通过REST API创建配额策略规则时、即使指定了特定qtree名称、默认规则也会意外自动创建。
操作日志详细信息如下。
====================
cluster1::> volume quota policy rule show -volume vol1
There are no entries matching your query.
----- body -----
{
"qtree": {
"name":"qtree1"
},
"space": {
"hard_limit": "104857600",
"soft_limit": "5242880"
},
"svm": {
"name": "svm1"
},
"type": "tree",
"volume": {
"name": "qtree1"
}
}
----------------
cluster1::> volume quota policy rule show -volume vol1
Vserver: svm1 Policy: default Volume: vol1
Soft Soft
User Disk Disk Files Files
Type Target Qtree Mapping Limit Limit Limit Limit Threshold
----- -------- ------- ------- -------- ------- ------ ------- --------
tree "" "" - - - - - - <----default rule is created unexpected
tree qtree1 "" - 100MB 5MB - - -
2 entries were displayed.