Skip to contentSkip to conversation

android: libltp: add new variant for loopback block device paths

PATCH New Sandeep Patil 2 participants 2 messages Sep 7, 2017 – Sep 8, 2017 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android: libltp: add new variant for loopback block device paths

Android systems put loopback devices at "/dev/block/loopX", add that variant in libltp so they can be found by the tests that need them.

E.g. of test getting fixed by this on Android, syscalls.ioctol05

---
 lib/tst_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/tst_device.c +2 -1
index 936bbfd03..67432caf6 100644
@@ -48,7 +48,8 @@ static int device_acquired;
 
 static const char *dev_variants[] = {
 	"/dev/loop%i",
-	"/dev/loop/%i"
+	"/dev/loop/%i",
+	"/dev/block/loop%i"
 };
 
 static int set_dev_path(int dev)
Signature · 1 line
2.14.1.581.gf28d330327-goog