diff mbox series

[2/2] c-test-api: Documentation updated

Message ID 20221026140408.471609-3-alessandro.carminati@gmail.com
State Superseded
Headers show
Series tst_find_backing_dev: fix stat fails /dev/root | expand

Commit Message

Alessandro Carminati Oct. 26, 2022, 2:04 p.m. UTC
Since the tst_find_backing_dev logic is changed, the doc is updated
accordingly.

Signed-off-by: Alessandro Carminati <alessandro.carminati@gmail.com>
---
 doc/c-test-api.txt | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
index 64ee3397f..b579e85ee 100644
--- a/doc/c-test-api.txt
+++ b/doc/c-test-api.txt
@@ -1067,12 +1067,11 @@  is created for that intention.
 -------------------------------------------------------------------------------
 #include "tst_test.h"
 
-voud tst_find_backing_dev(const char *path, char *dev);
+void tst_find_backing_dev(const char *path, char *dev);
 -------------------------------------------------------------------------------
 
-This function finds the block dev that this path belongs to, it uses stat function
-to get the major/minor number of the path. Then scan them in '/proc/self/mountinfo'
-and list 2th column value after ' - ' string as its block dev if match succeeds.
+This function finds the block dev that this path belongs to, it uses the unevent 
+file in sysfs to find the device name from the major and minor numbers. 
 
 [source,c]
 -------------------------------------------------------------------------------