diff options
author | Brian Behlendorf <[email protected]> | 2011-12-21 14:22:45 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-12-21 14:29:45 -0800 |
commit | 5f6c14b1eda9c7b47d11a3b90e78dea6a7f429e0 (patch) | |
tree | 1d8d0fb39a6e186027cdbf03d67892bed1a976ea /configure | |
parent | cd2817f8a6a3c0f7675c3ce954800c29eade5319 (diff) |
Proxmox VE kernel compat, invalidate_inodes()
The Proxmox VE kernel contains a patch which renames the function
invalidate_inodes() to invalidate_inodes_check(). In the process
it adds a 'check' argument and a '#define invalidate_inodes(x)'
compatibility wrapper for legacy callers. Therefore, if either
of these functions are exported invalidate_inodes() can be
safely used.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #58
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 78 |
1 files changed, 78 insertions, 0 deletions
@@ -15638,6 +15638,45 @@ _ACEOF fi + { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5 +$as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; } + grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \ + $LINUX_OBJ/Module*.symvers 2>/dev/null + rc=$? + if test $rc -ne 0; then + export=0 + for file in ; do + grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \ + "$LINUX_OBJ/$file" 2>/dev/null + rc=$? + if test $rc -eq 0; then + export=1 + break; + fi + done + if test $export -eq 0; then + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + + else + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INVALIDATE_INODES_CHECK 1 +_ACEOF + + fi + else + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INVALIDATE_INODES_CHECK 1 +_ACEOF + + fi + { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; } @@ -19908,6 +19947,45 @@ _ACEOF fi + { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5 +$as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; } + grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \ + $LINUX_OBJ/Module*.symvers 2>/dev/null + rc=$? + if test $rc -ne 0; then + export=0 + for file in ; do + grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \ + "$LINUX_OBJ/$file" 2>/dev/null + rc=$? + if test $rc -eq 0; then + export=1 + break; + fi + done + if test $export -eq 0; then + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + + else + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INVALIDATE_INODES_CHECK 1 +_ACEOF + + fi + else + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INVALIDATE_INODES_CHECK 1 +_ACEOF + + fi + { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; } |