Masaki Kanno
2009-Mar-11 02:17 UTC
[Xen-devel] [PATCH] Sort pvSCSI devices information by virtual HCTL
Hi, Currently, pvSCSI devices information is shown in no particular order. # xm scsi-list vm1 Idx BE state host phy-hctl phy vir-hctl devstate 0 0 4 1 0:0:0:3 sdd 0:0:0:3 4 0 0 4 1 0:0:0:6 sdg 0:0:0:6 4 0 0 4 1 0:0:0:2 sdc 0:0:0:2 4 0 0 4 1 0:0:0:0 sda 0:0:0:0 4 0 0 4 1 0:0:0:7 sdh 0:0:0:7 4 0 0 4 1 0:0:0:5 sdf 0:0:0:5 4 0 0 4 1 0:0:0:1 sdb 0:0:0:1 4 0 0 4 1 0:0:0:9 sdj 0:0:0:9 4 0 0 4 1 0:0:0:4 sde 0:0:0:4 4 0 0 4 1 0:0:0:8 sdi 0:0:0:8 4 1 0 4 1 1:0:0:7 sdr 1:0:0:7 4 1 0 4 1 1:0:0:8 sds 1:0:0:8 4 1 0 4 1 1:0:0:3 sdn 1:0:0:3 4 1 0 4 1 1:0:0:4 sdo 1:0:0:4 4 1 0 4 1 1:0:0:5 sdp 1:0:0:5 4 1 0 4 1 1:0:0:6 sdq 1:0:0:6 4 1 0 4 1 1:0:0:2 sdm 1:0:0:2 4 1 0 4 1 1:0:0:0 sdk 1:0:0:0 4 1 0 4 1 1:0:0:1 sdl 1:0:0:1 4 This patch sorts pvSCSI devices information by virtual HCTL. # xm scsi-list vm1 Idx BE state host phy-hctl phy vir-hctl devstate 0 0 4 1 0:0:0:0 sda 0:0:0:0 4 0 0 4 1 0:0:0:1 sdb 0:0:0:1 4 0 0 4 1 0:0:0:2 sdc 0:0:0:2 4 0 0 4 1 0:0:0:3 sdd 0:0:0:3 4 0 0 4 1 0:0:0:4 sde 0:0:0:4 4 0 0 4 1 0:0:0:5 sdf 0:0:0:5 4 0 0 4 1 0:0:0:6 sdg 0:0:0:6 4 0 0 4 1 0:0:0:7 sdh 0:0:0:7 4 0 0 4 1 0:0:0:8 sdi 0:0:0:8 4 0 0 4 1 0:0:0:9 sdj 0:0:0:9 4 1 0 4 1 1:0:0:0 sdk 1:0:0:0 4 1 0 4 1 1:0:0:1 sdl 1:0:0:1 4 1 0 4 1 1:0:0:2 sdm 1:0:0:2 4 1 0 4 1 1:0:0:3 sdn 1:0:0:3 4 1 0 4 1 1:0:0:4 sdo 1:0:0:4 4 1 0 4 1 1:0:0:5 sdp 1:0:0:5 4 1 0 4 1 1:0:0:6 sdq 1:0:0:6 4 1 0 4 1 1:0:0:7 sdr 1:0:0:7 4 1 0 4 1 1:0:0:8 sds 1:0:0:8 4 Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel