Bug 876579

Summary: mke2fs API does not apply block device naming translation to journaldevice optarg
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dyasny, mbooth
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-15 10:23:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2012-11-14 14:05:18 UTC
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

Comment 1 Richard W.M. Jones 2012-11-15 10:23:54 UTC
Fixed upstream in commit
a41629deb965830788d6b531272a0a20767e2ce6