Filter 在命令中指定lvm过滤器?

Filter 在命令中指定lvm过滤器?,filter,command,lvm,Filter,Command,Lvm,我确切地知道lvm.conf(from)中filter的用法,但我想在命令中指定filter,如下所示: lvs --filter [ "a/.*/" ] lvdisplay --config 'devices{filter=["a|^/dev/sdj[0-9]*$|","r|.*|"]}' lvm不支持这一点,我尝试了命令配置文件,但它不支持设备部分: vgs --commandprofile test Configuration section "devices" is not cust

我确切地知道lvm.conf(from)中filter的用法,但我想在命令中指定filter,如下所示:

lvs --filter [ "a/.*/" ]
lvdisplay --config 'devices{filter=["a|^/dev/sdj[0-9]*$|","r|.*|"]}'
lvm不支持这一点,我尝试了
命令配置文件
,但它不支持
设备部分

vgs --commandprofile test
Configuration section "devices" is not customizable by a profile.
Ignoring invalid command profile test.
Failed to apply command profile test.

因此,我想知道是否仍有在命令中指定lvm筛选器的方法?

我发现lvm命令具有参数
--config
,使用此参数可以在命令中指定筛选器,如下所示:

lvs --filter [ "a/.*/" ]
lvdisplay --config 'devices{filter=["a|^/dev/sdj[0-9]*$|","r|.*|"]}'