a184f9c801
Enable `grub-probe -t device' resolution on ZFS. * configure.ac: Check for getfsstat(), libzfs and libnvpair. * include/grub/util/libnvpair.h: New file. * include/grub/util/libzfs.h: New file. * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'. [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and `<grub/util/libnvpair.h>'. [HAVE_GETFSSTAT]: Include `<sys/mount.h>'. (find_mount_point_from_dir): New static function. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New function. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use find_root_device_from_libzfs() before ressorting to find_root_device(). * include/grub/util/misc.h (grub_util_init_libzfs): New function prototype. * util/misc.c: Include `<grub/util/libzfs.h>'. (grub_util_init_libzfs): New function. [HAVE_LIBZFS] (libzfs_handle): New global variable. [HAVE_LIBZFS] (fini_libzfs): New static function. (grub_util_init_libzfs): New function. * util/grub-probe.c (main): Call grub_util_init_libzfs(). |
||
---|---|---|
.. | ||
grub.d | ||
i386 | ||
ieee1275 | ||
powerpc/ieee1275 | ||
sparc64/ieee1275 | ||
bin2h.c | ||
deviceiter.c | ||
devicemap.c | ||
grub-editenv.c | ||
grub-fstest.c | ||
grub-install.in | ||
grub-macho2img.c | ||
grub-mkconfig.in | ||
grub-mkconfig_lib.in | ||
grub-mkdevicemap.c | ||
grub-mkfont.c | ||
grub-mkimage.c | ||
grub-mkimagexx.c | ||
grub-mkpasswd-pbkdf2.c | ||
grub-mkrelpath.c | ||
grub-mkrescue.in | ||
grub-pe2elf.c | ||
grub-probe.c | ||
grub-reboot.in | ||
grub-script-check.c | ||
grub-set-default.in | ||
import_gcry.py | ||
import_unicode.py | ||
lvm.c | ||
misc.c | ||
raid.c | ||
resolve.c | ||
update-grub_lib.in |