Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2014 23:44:17 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r263850 - user/marcel/mkimg
Message-ID:  <201403272344.s2RNiHbN047345@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Thu Mar 27 23:44:16 2014
New Revision: 263850
URL: http://svnweb.freebsd.org/changeset/base/263850

Log:
  Remove the -z flag. Let's just write a sparse file whenever we can.

Modified:
  user/marcel/mkimg/mkimg.c

Modified: user/marcel/mkimg/mkimg.c
==============================================================================
--- user/marcel/mkimg/mkimg.c	Thu Mar 27 23:16:18 2014	(r263849)
+++ user/marcel/mkimg/mkimg.c	Thu Mar 27 23:44:16 2014	(r263850)
@@ -90,7 +90,6 @@ usage(const char *why)
 	fprintf(stderr, "\t-P <num>\t-  physical sector size\n");
 	fprintf(stderr, "\t-S <num>\t-  logical sector size\n");
 	fprintf(stderr, "\t-T <num>\t-  number of tracks to simulate\n");
-	fprintf(stderr, "\t-z\t\t-  write a sparse file\n");
 
 	fprintf(stderr, "    schemes:\n");
 	SET_FOREACH(iter, schemes) {
@@ -334,7 +333,7 @@ main(int argc, char *argv[])
 {
 	int c, error;
 
-	while ((c = getopt(argc, argv, "b:o:p:s:vzH:P:S:T:")) != -1) {
+	while ((c = getopt(argc, argv, "b:o:p:s:vH:P:S:T:")) != -1) {
 		switch (c) {
 		case 'b':	/* BOOT CODE */
 			if (bcfd != -1)
@@ -366,8 +365,6 @@ main(int argc, char *argv[])
 		case 'v':
 			verbose++;
 			break;
-		case 'z':	/* SPARSE OUTPUT */
-			break;
 		case 'H':	/* GEOMETRY: HEADS */
 			error = parse_number(&nheads, 1, 255, optarg);
 			if (error)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403272344.s2RNiHbN047345>