@@ -434,7 +434,7 @@ def test_30_snapshot(self):
434
434
# Create the origin LV
435
435
vgsize = int (self .get_property_raw (vg , '.VolumeGroup' , 'FreeSize' ))
436
436
lvname = 'udisks_test_origin_lv'
437
- lv_path = vg .CreatePlainVolume (lvname , dbus .UInt64 (vgsize / 2 ), self .no_options ,
437
+ lv_path = vg .CreatePlainVolume (lvname , dbus .UInt64 (vgsize // 3 ), self .no_options ,
438
438
dbus_interface = self .iface_prefix + '.VolumeGroup' )
439
439
lv = self .bus .get_object (self .iface_prefix , lv_path )
440
440
self .assertIsNotNone (lv )
@@ -477,7 +477,7 @@ def test_40_cache(self):
477
477
# Create the origin LV
478
478
vgsize = int (self .get_property_raw (vg , '.VolumeGroup' , 'FreeSize' ))
479
479
orig_lvname = 'udisks_test_origin_lv'
480
- lv_path = vg .CreatePlainVolume (orig_lvname , dbus .UInt64 (vgsize / 2 ), self .no_options ,
480
+ lv_path = vg .CreatePlainVolume (orig_lvname , dbus .UInt64 (vgsize // 3 ), self .no_options ,
481
481
dbus_interface = self .iface_prefix + '.VolumeGroup' )
482
482
lv = self .bus .get_object (self .iface_prefix , lv_path )
483
483
self .assertIsNotNone (lv )
@@ -489,7 +489,7 @@ def test_40_cache(self):
489
489
cache_lvname = 'udisks_test_cache_lv'
490
490
vgsize = int (self .get_property_raw (vg , '.VolumeGroup' , 'FreeSize' ))
491
491
# 8 MiB reserved for the cache metadata created automatically by LVM
492
- lv_cache_path = vg .CreatePlainVolume (cache_lvname , dbus .UInt64 ((vgsize / 2 ) - 8 * 1024 ** 2 ), self .no_options ,
492
+ lv_cache_path = vg .CreatePlainVolume (cache_lvname , dbus .UInt64 ((vgsize // 3 ) - 8 * 1024 ** 2 ), self .no_options ,
493
493
dbus_interface = self .iface_prefix + '.VolumeGroup' )
494
494
cache_lv = self .bus .get_object (self .iface_prefix , lv_cache_path )
495
495
self .assertIsNotNone (cache_lv )
0 commit comments