From f984dc2e39aa0a0e7a94b4af8470cd9d9faa3ee8 Mon Sep 17 00:00:00 2001 From: KezhengLiu <43874813+KezhengLiu@users.noreply.github.com> Date: Sun, 9 Oct 2022 15:37:00 +0800 Subject: [PATCH] Update README.md Give step 3 of running strata more instuctions --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42b06e5cf6..aa98686075 100644 --- a/README.md +++ b/README.md @@ -112,8 +112,39 @@ sudo ./use_dax.sh unbind ##### 3. Setup storage size This step requires rebuilding of Libfs and KernFS. ~~~ -TODO: Some instructions to setup storage size (by a script or manually) +TODO: Some instructions to setup storage size (by a script ) ~~~ +Step 3 is setup the location of devieces in the source code. + +In Step 2 of Running Strata, the pmem mapping will be changed to dax mapping + +which maps pmem to /dev/dax* + +In Step 4 of Running Strata, nvme mapping will be changed into uio mapping + +which maps nvme0n1 to /dev/uio* + +The dev path is defined in code strata/libfs/src/storage/storage.c + +char *g_dev_path[] = { + (char *)"unused", + (char *)"/dev/dax0.0", + (char *)"/backup/mlfs_ssd", + (char *)"/backup/mlfs_hdd", + (char *)"/dev/dax1.0", + (char *)"/dev/dax2.0", +}; +what you have to do is change it to + +char *g_dev_path[] = { + (char *)"unused", + (char *)"/dev/dax0.0", + (char *)"/dev/uio0", + (char *)"/backup/mlfs_hdd", + (char *)"/dev/dax1.0", + (char *)"/dev/dax2.0", +}; +and then repeat steps 4 and 5 of Building Strata ##### 4. Setup UIO for SPDK ~~~