Description of problem: ... with the result that the mke2fs test doesn't work if you're using virtio-blk. Version-Release number of selected component (if applicable): libguestfs 1.19.59 How reproducible: 100% Steps to Reproduce: 1. Run the C API tests. Actual results: libguestfs: trace: mke2fs "/dev/sda2" "blocksize:4096" "journaldevice:/dev/sda1" "fstype:ext2" libguestfs: send_to_daemon: 276 bytes: 00 00 01 10 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 70 | 00 00 00 00 | ... guestfsd: main_loop: proc 368 (mke2fs) took 4.52 seconds guestfsd: main_loop: new request, len 0x110 /dev/sda2: No such file or directory mke2fs -b 4096 -J device=/dev/sda1 -t ext2 /dev/vda2 mke2fs 1.42.5 (29-Jul-2012) Could not stat /dev/sda1 --- No such file or directory The device apparently does not exist; did you specify it correctly? guestfsd: error: /dev/vda2: mke2fs 1.42.5 (29-Jul-2012) Could not stat /dev/sda1 --- No such file or directory The device apparently does not exist; did you specify it correctly? libguestfs: recv_from_daemon: 212 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 70 | 00 00 00 01 | 00 12 34 18 | ... libguestfs: trace: mke2fs = -1 (error) libguestfs: error: mke2fs: /dev/vda2: mke2fs 1.42.5 (29-Jul-2012) Could not stat /dev/sda1 --- No such file or directory The device apparently does not exist; did you specify it correctly? test_mke2fs_0 FAILED
Fixed upstream in commit a41629deb965830788d6b531272a0a20767e2ce6