bitkeeper revision 1.1041.1.9 (40e43dae6tkOjKpGS7n77Q_WIw-vwg)

Fixing drive finding with scsi arrays in Xend
This commit is contained in:
tw275@striker.cl.cam.ac.uk committed 2004-07-01 16:37:02 +00:00
1 parent 788b1c4771
commit 87a12f54d3
2 files changed
+8 -2

No files matched your search

+7 -2
View File
@@ -79,8 +79,13 @@ def lookup_raw_partn(partition):
if not re.match( '/dev/', partition ):
partition = '/dev/' + partition
drive = re.split( '[0-9]', partition )[0]
"""Try and match non-standard scsi raid arraysa
"""
if re.match( '/dev/cciss/c[0-9]+d[0-9]+p[0-9]+', partition ):
drive = re.split( 'p[0-9]+', partition )[0]
else:
drive = re.split( '[0-9]', partition )[0]
if drive == partition:
fd = os.popen( '/sbin/sfdisk -s ' + drive + ' 2>/dev/null' )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.