summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorHarsh Prateek Bora2011-10-12 15:41:25 +0200
committerAneesh Kumar K.V2011-10-15 12:00:27 +0200
commite06a765efbe3239d4b6148727a29342ab234180e (patch)
treeaeea24e5fe8581111d1b3d8936ea81038b8d6161 /configure
parenthw/9pfs: Add open flag mapping (diff)
downloadqemu-e06a765efbe3239d4b6148727a29342ab234180e.tar.gz
qemu-e06a765efbe3239d4b6148727a29342ab234180e.tar.xz
qemu-e06a765efbe3239d4b6148727a29342ab234180e.zip
hw/9pfs: Add st_gen support in getattr reply
This patch use file system specific ioctl for getting i_generation value. Not all file system support the ioctl. So we add an export specific extended operation and assign right callback for the file system that support i_generation ioctl ["M. Mohan Kumar" <mohan@in.ibm.com> we can do ioctl only for regular files and directories on the server] Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index f8f7a072b7..4f87e0a43b 100755
--- a/configure
+++ b/configure
@@ -2568,6 +2568,19 @@ if compile_prog "" "" ; then
open_by_handle_at=yes
fi
+########################################
+# check if we have linux/magic.h
+
+linux_magic_h=no
+cat > $TMPC << EOF
+#include <linux/magic.h>
+int main(void) {
+}
+EOF
+if compile_prog "" "" ; then
+ linux_magic_h=yes
+fi
+
##########################################
# End of CC checks
# After here, no more $cc or $ld runs
@@ -3051,6 +3064,10 @@ if test "$open_by_handle_at" = "yes" ; then
echo "CONFIG_OPEN_BY_HANDLE=y" >> $config_host_mak
fi
+if test "$linux_magic_h" = "yes" ; then
+ echo "CONFIG_LINUX_MAGIC_H=y" >> $config_host_mak
+fi
+
# USB host support
case "$usb" in
linux)