diff options
author | Gabriele M <moto.falcon.git@gmail.com> | 2016-11-20 22:04:36 +0100 |
---|---|---|
committer | Gabriele M <moto.falcon.git@gmail.com> | 2017-01-13 21:17:13 +0000 |
commit | 39b9add9ff69771b9b21dd0010a0d3116096849a (patch) | |
tree | bf1173ae84d2447ad8c0793f3b58219022633d31 | |
parent | 892c602b10e745977ca161d06f1a90ac6dfc3728 (diff) | |
download | android_external_toybox-cm-13.0.tar.gz android_external_toybox-cm-13.0.tar.bz2 android_external_toybox-cm-13.0.zip |
losetup: Fix loop mountingHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001cm-13.0
Vold creates the loop blocks in /dev/block.
Change-Id: Ie926ce672deae4a3494aad2ea19d44d7be60ec97
(cherry picked from commit c3a5a80fdea07f47295c92b279729d4baa730402)
-rw-r--r-- | toys/other/losetup.c | 2 |
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); } } |