diff --git a/0050-linux-user-Add-ioctl-for-BLKBSZGET.patch b/0050-linux-user-Add-ioctl-for-BLKBSZGET.patch new file mode 100644 index 00000000..2527f747 --- /dev/null +++ b/0050-linux-user-Add-ioctl-for-BLKBSZGET.patch @@ -0,0 +1,27 @@ +From 3f2fdae967bb91a2c02020369c0af53c9cafd8b5 Mon Sep 17 00:00:00 2001 +From: Alexander Graf +Date: Thu, 2 Feb 2012 02:22:34 +0100 +Subject: [PATCH] linux-user: Add ioctl for BLKBSZGET + +This patch adds the ioctl wrapper definition for BLKBSZGET. + +Signed-off-by: Alexander Graf +--- + linux-user/ioctls.h | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h +index f938050..c261063 100644 +--- a/linux-user/ioctls.h ++++ b/linux-user/ioctls.h +@@ -75,6 +75,7 @@ + IOCTL(BLKRASET, 0, TYPE_INT) + IOCTL(BLKRAGET, IOC_R, MK_PTR(TYPE_LONG)) + IOCTL(BLKSSZGET, IOC_R, MK_PTR(TYPE_LONG)) ++ IOCTL(BLKBSZGET, IOC_R, MK_PTR(TYPE_INT)) + #ifdef FIBMAP + IOCTL(FIBMAP, IOC_W | IOC_R, MK_PTR(TYPE_LONG)) + #endif +-- +1.6.0.2 + diff --git a/qemu.changes b/qemu.changes index 0d053d2b..47dafa1a 100644 --- a/qemu.changes +++ b/qemu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 1 23:48:53 UTC 2012 - agraf@suse.de + +- qemu-user: add wrapper for BLKBSZGET + ------------------------------------------------------------------- Tue Jan 31 21:36:02 UTC 2012 - agraf@suse.de diff --git a/qemu.spec b/qemu.spec index 648b3708..647eaa9d 100644 --- a/qemu.spec +++ b/qemu.spec @@ -75,6 +75,7 @@ Patch0046: 0046-linux-user-implement-device-mapper-ioctls.patch Patch0047: 0047-linux-user-add-struct-old_dev_t-compat.patch Patch0048: 0048-linux-user-fix-BLK-ioctl-arguments.patch Patch0049: 0049-linux-user-add-BLKSSZGET-ioctl-wrapper.patch +Patch0050: 0050-linux-user-Add-ioctl-for-BLKBSZGET.patch # this is to make lint happy Source300: rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -183,6 +184,7 @@ run cross architectures builds %patch0047 -p1 %patch0048 -p1 %patch0049 -p1 +%patch0050 -p1 %build # build QEMU