Bug 876579 - mke2fs API does not apply block device naming translation to journaldevice optarg
Summary: mke2fs API does not apply block device naming translation to journaldevice op...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-14 14:05 UTC by Richard W.M. Jones
Modified: 2012-11-15 10:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-15 10:23:54 UTC
Embargoed:


Attachments (Terms of Use)

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


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