svn commit: r226858 - stable/9/usr.sbin/boot0cfg

Andrey V. Elsukov ae at FreeBSD.org
Thu Oct 27 20:23:03 UTC 2011


Author: ae
Date: Thu Oct 27 20:23:03 2011
New Revision: 226858
URL: http://svn.freebsd.org/changeset/base/226858

Log:
  MFC r226714:
    Fix argument name. This fixes EINVAL when boot0cfg uses GEOM_PART'
    control interface.
  
  Approved by:	re (kib)

Modified:
  stable/9/usr.sbin/boot0cfg/boot0cfg.c
Directory Properties:
  stable/9/usr.sbin/boot0cfg/   (props changed)

Modified: stable/9/usr.sbin/boot0cfg/boot0cfg.c
==============================================================================
--- stable/9/usr.sbin/boot0cfg/boot0cfg.c	Thu Oct 27 20:15:37 2011	(r226857)
+++ stable/9/usr.sbin/boot0cfg/boot0cfg.c	Thu Oct 27 20:23:03 2011	(r226858)
@@ -378,7 +378,7 @@ write_mbr(const char *fname, int flags, 
     }
     grq = gctl_get_handle();
     gctl_ro_param(grq, "class", -1, "PART");
-    gctl_ro_param(grq, "geom", -1, pname);
+    gctl_ro_param(grq, "arg0", -1, pname);
     gctl_ro_param(grq, "verb", -1, "bootcode");
     gctl_ro_param(grq, "bootcode", mbr_size, mbr);
     gctl_ro_param(grq, "flags", -1, "C");


More information about the svn-src-all mailing list