From: Jack Lange Date: Sat, 19 Nov 2011 00:37:12 +0000 (-0500) Subject: updated kernel version numbers for file interface X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2FRelease-1.3;p=palacios.git updated kernel version numbers for file interface --- diff --git a/linux_module/iface-file.c b/linux_module/iface-file.c index 1df1d6d..39f909b 100644 --- a/linux_module/iface-file.c +++ b/linux_module/iface-file.c @@ -106,7 +106,7 @@ static int mkdir_recursive(const char * path, unsigned short perms) { static int palacios_file_mkdir(const char * pathname, unsigned short perms, int recurse) { /* Welcome to the jungle... */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,41) /* DO NOT REFERENCE THIS VARIABLE */ /* It only exists to provide version compatibility */ struct path tmp_path; @@ -123,7 +123,7 @@ static int palacios_file_mkdir(const char * pathname, unsigned short perms, int } /* Before Linux 3.1 this was somewhat more difficult */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,41) { struct nameidata nd;