Permalink
Browse files

fixing rt5863: strange attach/detach volume issue

  • Loading branch information...
1 parent be9ec8f commit 28bd434730b10bcfc81f8c5964f8e40b7e30eac3 @sangmin sangmin committed Feb 1, 2012
@@ -230,8 +230,8 @@ public AttachedVolume apply( VmVolumeAttachment vol ) {
}
attachment.setAttachTime( vol.getAttachTime( ) );
attachment.setStatus( vol.getStatus( ) );
- if ( !attachment.getDevice( ).startsWith( "/dev/" ) ) {
- attachment.setDevice( "/dev/" + attachment.getDevice( ) );
+ if ( !attachment.getDevice( ).replaceAll( "unknown,requested:", "" ).startsWith( "/dev/" ) ) {
+ attachment.setDevice( "/dev/" + attachment.getDevice( ).replaceAll( "unknown,requested:", "" ) );
}
return attachment;
}

0 comments on commit 28bd434

Please sign in to comment.