Intercept preadv64 and pwritev64 as well.
This commit is contained in:
parent
e65df61ab8
commit
fef279b0f7
@ -42,7 +42,7 @@ Summary: Access and modify virtual machine disk images
|
|||||||
Name: libguestfs
|
Name: libguestfs
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.0.88
|
Version: 1.0.88
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://libguestfs.org/
|
URL: http://libguestfs.org/
|
||||||
@ -459,11 +459,12 @@ export LIBGUESTFS_DEBUG=1
|
|||||||
# Workaround #563103
|
# Workaround #563103
|
||||||
cat > rhbz563103.c <<'EOF'
|
cat > rhbz563103.c <<'EOF'
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
static void init () __attribute__((constructor));
|
|
||||||
static void init () { write (2, "Enable workaround for incorrect preadv/pwritev emulation in glibc (RHBZ#563103)\n", 80); }
|
|
||||||
ssize_t preadv (int fd,...) { errno = ENOSYS; return -1; }
|
ssize_t preadv (int fd,...) { errno = ENOSYS; return -1; }
|
||||||
|
ssize_t preadv64 (int fd,...) { errno = ENOSYS; return -1; }
|
||||||
ssize_t pwritev (int fd,...) { errno = ENOSYS; return -1; }
|
ssize_t pwritev (int fd,...) { errno = ENOSYS; return -1; }
|
||||||
|
ssize_t pwritev64 (int fd,...) { errno = ENOSYS; return -1; }
|
||||||
EOF
|
EOF
|
||||||
gcc -fPIC -c rhbz563103.c
|
gcc -fPIC -c rhbz563103.c
|
||||||
gcc -shared -Wl,-soname,rhbz563103.so.1 rhbz563103.o -o rhbz563103.so
|
gcc -shared -Wl,-soname,rhbz563103.so.1 rhbz563103.o -o rhbz563103.so
|
||||||
@ -679,7 +680,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.88-4
|
* Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.88-5
|
||||||
- Attempted workaround for RHBZ#563103, so we can reenable tests.
|
- Attempted workaround for RHBZ#563103, so we can reenable tests.
|
||||||
|
|
||||||
* Fri Mar 26 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.88-2
|
* Fri Mar 26 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.88-2
|
||||||
|
Loading…
Reference in New Issue
Block a user