执行XenServer的xe param list命令,比如sr-param-list会返回
[root@xs150 ~]# xe sr-param-list uuid=a90e4c0b-ad89-189f-fac0-4ba6ae51111c
uuid ( RO) : a90e4c0b-ad89-189f-fac0-4ba6ae51111c
name-label ( RW): Local storage
name-description ( RW):
host ( RO): xs150
allowed-operations (SRO): VDI.create; VDI.snapshot; PBD.create; PBD.destroy; ...
current-operations (SRO):
PBDs (SRO): 06685028-a1ee-56cf-de8f-2b6320cbb64b
virtual-allocation ( RO): 2866290884608
physical-utilisation ( RO): 2932711882752
physical-size ( RO): 2996284948480
type ( RO): lvm
content-type ( RO): user
shared ( RW): false
introduced-by ( RO): <not in database>
other-config (MRW): i18n-original-value-name_label: Local storage; i18n-key: local-storage
sm-config (MRO): allocation: thick; use_vhd: true; devserial: scsi-SATA_ST3000DM001-1CH_Z1F1V7G5
blobs ( RO):
local-cache-enabled ( RO): false
tags (SRW):
返回值的属性分为 RO, RW, SRO, SRW, MRO, MRW, 分别代表什么意思
RO和RW很常见
RO - 表示数据是只读的(Read Only)
RW - 表示数据是可读写的(Read Write)
S代表数据是Set
M代表数据是Map
参考
http://discussions.citrix.com/topic/348010-ro-rw-mrw-mro-srw/