aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2016-11-20 22:04:36 +0100
committerGabriele M <moto.falcon.git@gmail.com>2017-01-13 21:17:13 +0000
commit39b9add9ff69771b9b21dd0010a0d3116096849a (patch)
treebf1173ae84d2447ad8c0793f3b58219022633d31
parent892c602b10e745977ca161d06f1a90ac6dfc3728 (diff)
downloadandroid_external_toybox-39b9add9ff69771b9b21dd0010a0d3116096849a.tar.gz
android_external_toybox-39b9add9ff69771b9b21dd0010a0d3116096849a.tar.bz2
android_external_toybox-39b9add9ff69771b9b21dd0010a0d3116096849a.zip
Vold creates the loop blocks in /dev/block. Change-Id: Ie926ce672deae4a3494aad2ea19d44d7be60ec97 (cherry picked from commit c3a5a80fdea07f47295c92b279729d4baa730402)
-rw-r--r--toys/other/losetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/losetup.c b/toys/other/losetup.c
index 4e467a9c..6b0a7574 100644
--- a/toys/other/losetup.c
+++ b/toys/other/losetup.c
@@ -76,7 +76,7 @@ static void loopback_setup(char *device, char *file)
// mount -o loop depends on found device being at the start of toybuf.
if (cfd != -1) {
if (0 <= (i = ioctl(cfd, 0x4C82))) // LOOP_CTL_GET_FREE
- sprintf(device = toybuf, "/dev/loop%d", i);
+ sprintf(device = toybuf, "/dev/block/loop%d", i);
close(cfd);
}
}