From owner-cvs-all Thu Jul 13 16: 5:11 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CE73337B7A6; Thu, 13 Jul 2000 16:05:05 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA96384; Thu, 13 Jul 2000 16:05:05 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-Id: <200007132305.QAA96384@freefall.freebsd.org> From: John Baldwin Date: Thu, 13 Jul 2000 16:05:05 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/boot0cfg boot0cfg.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2000/07/13 16:05:05 PDT Modified files: usr.sbin/boot0cfg boot0cfg.c Log: - When we save the existing MBR to a file, check to see if the MBR we are saving is boot0. If it is, use its version number so that we can grab all of boot0 (1024 bytes with version 1.1 for example) when we save it to a file via the 'f' option. Otherwise, we just save the first sector. - Cleanup this code a bit by splitting some functionality out into separate functions. Suggested by: Patrick Bihan-Faou (1) Revision Changes Path 1.9 +139 -84 src/usr.sbin/boot0cfg/boot0cfg.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message