change kernel backstore to fileio
The kernel fileio backstore supports SCSI persistent reserve, which is
needed for some cluster applications. This change converts to use
this fileio backstore.
Change-Id: Ifc3745a52e08c78abdf727d36f32ca0c7b2f05da
Closes-Bug: 1719634
(cherry picked from commit ead4bc9531
)
This commit is contained in:
parent
8ee60c5588
commit
62529caddd
|
@ -95,7 +95,7 @@ class TestFileIOVolumeAdapter(test_vol.TestVolumeAdapter):
|
||||||
# Validate
|
# Validate
|
||||||
mock_file_bld.assert_called_once_with(
|
mock_file_bld.assert_called_once_with(
|
||||||
self.adpt, 'fake_path',
|
self.adpt, 'fake_path',
|
||||||
backstore_type=pvm_stg.BackStoreType.USER_QCOW)
|
backstore_type=pvm_stg.BackStoreType.FILE_IO)
|
||||||
self.assertEqual(1, mock_build_map.call_count)
|
self.assertEqual(1, mock_build_map.call_count)
|
||||||
self.assertEqual(1, mock_udid_to_map.call_count)
|
self.assertEqual(1, mock_udid_to_map.call_count)
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ class TestFileIOVolumeAdapter(test_vol.TestVolumeAdapter):
|
||||||
# Validate
|
# Validate
|
||||||
mock_file_bld.assert_called_once_with(
|
mock_file_bld.assert_called_once_with(
|
||||||
self.adpt, 'fake_path',
|
self.adpt, 'fake_path',
|
||||||
backstore_type=pvm_stg.BackStoreType.USER_QCOW)
|
backstore_type=pvm_stg.BackStoreType.FILE_IO)
|
||||||
self.assertEqual(0, mock_build_map.call_count)
|
self.assertEqual(0, mock_build_map.call_count)
|
||||||
|
|
||||||
@mock.patch('pypowervm.entities.Entry.uuid',
|
@mock.patch('pypowervm.entities.Entry.uuid',
|
||||||
|
|
|
@ -96,7 +96,7 @@ class FileIOVolumeAdapter(v_driver.PowerVMVolumeAdapter):
|
||||||
# Get the File Path
|
# Get the File Path
|
||||||
fio = pvm_stg.FileIO.bld(
|
fio = pvm_stg.FileIO.bld(
|
||||||
self.adapter, path,
|
self.adapter, path,
|
||||||
backstore_type=pvm_stg.BackStoreType.USER_QCOW)
|
backstore_type=pvm_stg.BackStoreType.FILE_IO)
|
||||||
|
|
||||||
def add_func(vios_w):
|
def add_func(vios_w):
|
||||||
# If the vios doesn't match, just return
|
# If the vios doesn't match, just return
|
||||||
|
|
Loading…
Reference in New Issue