WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Sort pvSCSI devices information by virtual HCTL

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Sort pvSCSI devices information by virtual HCTL
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 11 Mar 2009 11:17:02 +0900
Delivery-date: Tue, 10 Mar 2009 19:17:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: sort_xm_scsi_list.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Sort pvSCSI devices information by virtual HCTL, Masaki Kanno <=