Update documentation regarding userstorage
setup and teardown.
Signed-off-by: Albert Esteve <aesteve(a)redhat.com>
---
README.dev | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/README.dev b/README.dev
index 1bf1d17..70e4a7c 100644
--- a/README.dev
+++ b/README.dev
@@ -54,9 +54,21 @@ Or using environment variable:
Testing 4K support
==================
-To enable the 4k tests, you need to setup 4k stroage for the tests:
+To enable the 4k tests, you need to have userstorage installed.
+First, you need to create a virtual environment
+(https://docs.python.org/3/library/venv.html), and then install
+the userstorage library from the requirements.txt.
+This only needs to be done once:
- $ python tests/storage.py setup
+ $ python3 -m venv ~/.venv/sanlock
+ $ source ~/.venv/vdsm/bin/activate
+ $ pip install --upgrade pip
+ $ pip install -r requirements.txt
+ $ deactivate
+
+Then, you just need to setup 4k storage for the tests:
+
+ $ userstorage create tests/storage.py
This creates two loop devices with 4k sector size; one for testing sanlock with
4k block device, and the other for testing with a filesystem backed by a 4k
@@ -64,7 +76,7 @@ block device.
To teardown the storage:
- $ python tests/storage.py teardown
+ $ userstorage delete tests/storage.py
The script unmounts the filesystem and detaches the loop devices.
--
2.37.3