在命令中指定 lvm 过滤器?

Specify lvm filter in command?

我完全知道 lvm.conf 中过滤器的用法(来自 here),但我想在命令中指定过滤器,如下所示:

lvs --filter [ "a/.*/" ]

lvm 不支持那个,我试过 commandprofile 但它不支持部分 devices:

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,使用这个参数可以指定命令中的过滤器,如下:

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