Robert Millan a184f9c801 2010-07-30 Robert Millan <rmh@gnu.org>
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().
2010-07-30 21:43:12 +02:00
..
2009-06-10 21:04:23 +00:00
2010-07-02 22:06:19 +02:00
2010-07-02 22:05:47 +02:00
2010-04-26 21:11:16 +02:00
2010-07-02 19:35:07 +02:00
2010-05-05 16:28:52 +02:00
2010-01-10 13:34:48 +01:00
2010-01-20 21:31:39 +01:00
2010-01-20 07:36:17 +01:00
2010-03-27 00:27:42 +01:00
2010-03-26 20:20:52 +01:00
2010-07-02 19:35:07 +02:00
2010-03-27 00:19:42 +01:00
2010-07-02 19:35:07 +02:00
2008-08-05 12:38:12 +00:00