Fix snapshot automounting with GrSecurity constify plugin.
authorMassimo Maggi <massimo@mmmm.it>
Thu, 23 Aug 2012 12:52:45 +0000 (14:52 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Aug 2012 15:56:38 +0000 (08:56 -0700)
commit52cd92022eaf8f105510df708d234012cbe5078d
treebf2cda13d57bd7ae7ac62e50ef10f4286620efdf
parent08b1b21d58b1ae8a67fec38ccda02489c4aa8115
Fix snapshot automounting with GrSecurity constify plugin.

./configure erroneously detects absence of dops->d_automount
when built against a GrSecurity patched kernel.

Summerized error message found in config.log:

  checking whether dops->d_automount() exists
  ...
  In function 'main': ... error: constified variable 'dops'
  cannot be local

The "dops" variable cannot be a local variable, so it's
moved to the global scope.

This test also fails if the prototype of the dops->d_automount
function pointer is changed.

Signed-off-by: Massimo Maggi <massimo@mmmm.it>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Closes #884
config/kernel-automount.m4
configure