Btrfs commands don't work when using user-space emulation of other architectures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
qemu (Fedora) |
Unknown
|
Unknown
|
Bug Description
Description of problem:
When doing cross-arch builds with mock, it uses qemu-user-static under the hood, and qemu-user-static lacks support for Btrfs ioctls to emulate so that btrfs(8) commands work correctly.
This is especially important for being able to do cross-arch image builds.
How reproducible:
Always (on Fedora 33 with qemu-5.1.0-2.fc33)
Steps to Reproduce:
$ sudo dnf install mock qemu-user-static wget
$ sudo usermod -a -G mock $USER
$ newgrp mock
$ mock --root fedora-
$ mock --root fedora-
Actual results:
Fails with errors like "ERROR: cannot create subvolume: Function not implemented"
Expected results:
Succeeds and creates subvolumes properly.
Additional info:
There is a patch series from a few days ago to add support for many btrfs ioctls which could fix this...
https:/
Changed in qemu: | |
status: | New → In Progress |
tags: | added: linux-user |
Laurent, I am assuming that the commits here: /gitlab. com/qemu- project/ qemu/-/ commits/ master? utf8=%E2% 9C%93&search= Filip+Bozuta
https:/
are sufficient to mark this issue as Fix Committed. It looks like the Downstream bug tracker for Fedora has marked the related bug as CLOSED ERRATA already.
If I'm wrong, please reopen.