Bug 991228
Summary: | Invalid argument "cache" for -drive | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lukáš Doktor <ldoktor> |
Component: | qemu | Assignee: | Fedora Virtualization Maintainers <virt-maint> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | amit.shah, berrange, cfergeau, crobinso, dwmw2, itamar, pbonzini, rjones, scottt.tw, virt-maint |
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: | 2013-09-09 13:47:49 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: | |||
Bug Depends On: | |||
Bug Blocks: | 826015 |
Description
Lukáš Doktor
2013-08-01 22:19:56 UTC
Oh, sorry, it doesn't work on qemu-1.5.50. Anyway IMO it should work and I'd swear it worked before. At a guess I would say this has something to do with tmp-on-tmpfs. cache=none causes the O_DIRECT flag to be used, and this flag isn't supported by tmpfs. Hi, yes, that is the cause. It would be nice if qemu could report this with some sane error message instead of "could not open disk image /tmp/asdf: Invalid argument". (In reply to Lukas Doktor from comment #3) > Hi, yes, that is the cause. It would be nice if qemu could report this with > some sane error message instead of "could not open disk image /tmp/asdf: > Invalid argument". Unfortunately qemu just calls open(2) and gets errno = EINVAL back, and no more information than that. It would be nice if tmpfs could be persuaded to just ignore the O_DIRECT flag, since this flag has, at best, hazy semantics and they likely don't matter on an in-memory filesystem. Stefan posted patches upstream to give an explicit error in this case: https://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg03019.html So just closing this as UPSTREAM |