[pve-devel] [PATCH] restrict scsi-block to /dev/disk/

Derumier Alexandre aderumier at odiso.com
Sat Mar 10 12:56:42 CET 2012


Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 44fc0b2..2dc3231 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -904,7 +904,7 @@ sub print_drivedevice_full {
               } else {
                   $path = PVE::Storage::path($storecfg, $drive->{file});
               }
-              if ($path =~ m|^/dev/| ) {
+              if ($path =~ m|^/dev/disk/| ) {
                   $devicetype = 'block';
               }
          }
-- 
1.7.2.5




More information about the pve-devel mailing list