grub/kern/emu
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
..
console.c Merge mainline into bidi 2010-07-02 19:35:07 +02:00
getroot.c 2010-07-30 Robert Millan <rmh@gnu.org> 2010-07-30 21:43:12 +02:00
hostdisk.c 2010-07-01 Robert Millan <rmh@gnu.org> 2010-07-01 10:52:23 +02:00
hostfs.c
main.c merge with mainline 2010-05-04 09:09:03 +05:30
misc.c * kern/emu/misc.c (device_mapper_null_log): New function. 2010-06-07 22:41:55 +01:00
mm.c undo some hunks that were removed by mistake 2010-04-27 20:59:45 +05:30
time.c