SHA256
1
0
forked from pool/qemu
qemu/0032-linux-user-XXX-disable-fiemap.patch.patch
Alexander Graf ebb4cfaca2 - fix getdent in linux-user
- fix statfs in linux-user
- disable FIEMAP support in linux-user

OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=102
2012-08-21 12:29:30 +00:00

27 lines
825 B
Diff

From cb9b53ee9c4277f5b61038b37c1a7ef827652b4a Mon Sep 17 00:00:00 2001
From: Alexander Graf <agraf@suse.de>
Date: Tue, 21 Aug 2012 14:20:40 +0200
Subject: [PATCH] linux-user: XXX disable fiemap
agraf: fiemap breaks in libarchive. Disable it for now.
---
linux-user/syscall.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 60cf77f..21856f0 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3252,6 +3252,11 @@ static abi_long do_ioctl_fs_ioc_fiemap(const IOCTLEntry *ie, uint8_t *buf_temp,
uint32_t outbufsz;
int free_fm = 0;
+ if (1) {
+ /* XXX agraf: fiemap breaks for me */
+ return -TARGET_EINVAL;
+ }
+
assert(arg_type[0] == TYPE_PTR);
assert(ie->access == IOC_RW);
arg_type++;