android-xfstests: create loopback device nodes in standard location
PATCH 1/1 android-xfstests: create loopback device nodes in standard location
From: Eric Biggers <[email protected]>
Android creates loopback device nodes in /dev/block/, where they can't be found by losetup. Create them in /dev/ too so that losetup can find them. This stops tests using loopback devices, e.g. generic/361 and shared/298, from failing.
--- kvm-xfstests/android-xfstests | 8 ++++++++ 1 file changed, 8 insertions(+)
kvm-xfstests/android-xfstests +8 -0
@@ -94,6 +94,14 @@ if ! cut -d' ' -f2 /proc/mounts 2>/dev/null | grep -q '^$CHROOT_DIR/results$'; t mkdir -p $RESULTS_DIR mount --bind $RESULTS_DIR $CHROOT_DIR/results fi + +# Android puts loopback device nodes in /dev/block/ instead of /dev/. +# But losetup can only find them in /dev/, so create them there too. +for i in \`seq 0 7\`; do + if [ ! -e /dev/loop\$i ]; then + mknod /dev/loop\$i b 7 \$i + fi +done EOF }
Signature · 1 line
2.12.0.246.ga2ecc84866-goog
Quoted 9 lines · Eric Biggers
From: Eric Biggers <[email protected]>
Android creates loopback device nodes in
/dev/block/, where they can't be found by losetup. Create them in/dev/too so that losetup can find them. This stops tests using loopback devices, e.g. generic/361 and shared/298, from failing.Signed-off-by Eric Biggers <[email protected]>---
Ted, this patch seems to have gotten lost; can you apply it? Thanks!
- Eric
Theodore Ts'o
AppliedQuoted 8 lines · Eric Biggers
From: Eric Biggers <[email protected]>
Android creates loopback device nodes in
/dev/block/, where they can't be found by losetup. Create them in/dev/too so that losetup can find them. This stops tests using loopback devices, e.g. generic/361 and shared/298, from failing.Signed-off-by Eric Biggers <[email protected]>
Applied, thanks.
- Ted