OSDN Git Service

The two size units of being compared are unmatched.
[karesansui/karesansui.git] / bin / replicate_storage_volume.py
index d3a7f9e..119e9f5 100755 (executable)
@@ -145,7 +145,7 @@ class ReplicateStorageVolume(KssCommand):
                         'Specified storage volume does not "file" type. - pool=%s, vol=%s'
                         % (opts.orig_pool, opts.orig_volume))
 
-                filesize = vol_info[1]
+                filesize = vol_info[1] / (1024 * 1024) # a unit 'MB'
                 target_path = conn.get_storage_pool_targetpath(opts.dest_pool)
                 if chk_create_disk(target_path, filesize) is False:
                     raise KssCommandException(