zfs/etc/init.d
Richard Yao 6a0936babc Linux 3.4 compat, d_make_root() replaces d_alloc_root()
torvalds/linux@adc0e91ab1 introduced
introduced d_make_root() as a replacement for d_alloc_root(). Further
commits appear to have removed d_alloc_root() from the Linux source
tree. This causes the following failure:

  error: implicit declaration of function 'd_alloc_root'
  [-Werror=implicit-function-declaration]

To correct this we update the code to use the current d_make_root()
interface for readability.  Then we introduce an autotools check
to determine if d_make_root() is available.  If it isn't then we
define some compatibility logic which used the older d_alloc_root()
interface.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #776
2012-06-11 10:04:49 -07:00
..
.gitignore Fix autoconf variable substitution in init scripts. 2011-08-19 16:26:14 -07:00
Makefile.am Use automatic variable in Makefile 2011-09-26 09:22:30 -07:00
Makefile.in Linux 3.4 compat, d_make_root() replaces d_alloc_root() 2012-06-11 10:04:49 -07:00
zfs.arch.in Fix incorrect zpool_cache substitution 2011-08-22 16:01:59 -07:00
zfs.fedora.in Fix incorrect zpool_cache substitution 2011-08-22 16:01:59 -07:00
zfs.gentoo.in Make Gentoo initscript use modinfo 2012-04-03 10:37:18 -07:00
zfs.lsb.in Quote variables in the zfs.lsb script. 2011-12-05 09:51:55 -08:00
zfs.lunar.in Fix incorrect zpool_cache substitution 2011-08-22 16:01:59 -07:00
zfs.redhat.in Fix incorrect zpool_cache substitution 2011-08-22 16:01:59 -07:00