mirror of
https://git.proxmox.com/git/grub2
synced 2026-03-28 08:40:26 +00:00
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(). |
||
|---|---|---|
| .. | ||
| efi | ||
| emu | ||
| generic | ||
| i386 | ||
| ieee1275 | ||
| mips | ||
| powerpc | ||
| sparc64 | ||
| x86_64 | ||
| command.c | ||
| corecmd.c | ||
| device.c | ||
| disk.c | ||
| dl.c | ||
| elf.c | ||
| env.c | ||
| err.c | ||
| file.c | ||
| fs.c | ||
| list.c | ||
| main.c | ||
| misc.c | ||
| mm.c | ||
| parser.c | ||
| partition.c | ||
| rescue_parser.c | ||
| rescue_reader.c | ||
| term.c | ||
| time.c | ||