2010-08-14 Robert Millan <rmh@gnu.org>
* kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if filesystem is not ZFS.
This commit is contained in:
parent
7a3c13dea5
commit
f3710e088c
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-08-14 Robert Millan <rmh@gnu.org>
|
||||||
|
|
||||||
|
* kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
|
||||||
|
filesystem is not ZFS.
|
||||||
|
|
||||||
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
|
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
|
||||||
|
|
||||||
Fix for misspelled color names defaulting to black/black (bug
|
Fix for misspelled color names defaulting to black/black (bug
|
||||||
|
|
|
@ -288,6 +288,9 @@ grub_find_zpool_from_dir (const char *dir, char **poolname, char **poolfs)
|
||||||
if (statfs (dir, &mnt) != 0)
|
if (statfs (dir, &mnt) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (strcmp (mnt.f_fstypename, "zfs") != 0)
|
||||||
|
return;
|
||||||
|
|
||||||
*poolname = xstrdup (mnt.f_mntfromname);
|
*poolname = xstrdup (mnt.f_mntfromname);
|
||||||
|
|
||||||
slash = strchr (*poolname, '/');
|
slash = strchr (*poolname, '/');
|
||||||
|
|
Loading…
Reference in a new issue