Bug 876579 - mke2fs API does not apply block device naming translation to journaldevice optarg
mke2fs API does not apply block device naming translation to journaldevice op...
Status: CLOSED UPSTREAM
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard W.M. Jones
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-14 09:05 EST by Richard W.M. Jones
Modified: 2012-11-15 05:23 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-11-15 05:23:54 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2012-11-14 09:05:18 EST
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 05:23:54 EST
Fixed upstream in commit
a41629deb965830788d6b531272a0a20767e2ce6

Note You need to log in before you can comment on or make changes to this bug.