PERFORCE change 213472 for review

Brooks Davis brooks at FreeBSD.org
Tue Jun 26 01:13:29 UTC 2012


http://p4web.freebsd.org/@@213472?ac=10

Change 213472 by brooks at brooks_ecr_current on 2012/06/26 01:12:42

	Allow the range to be erased to be specified as an offset and
	number of 128K blocks in addition to a number of bytes.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/usr.sbin/isfctl/isfctl.c#2 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/usr.sbin/isfctl/isfctl.c#2 (text+ko) ====

@@ -88,6 +88,13 @@
 		ir.ir_size = strtol(argv[2], &p, 0);
 		if (*p)
 			errx(1, "invalid size -- %s", argv[3]);
+		/*
+		 * If the user requests to delete less than 32K of space
+		 * then assume that they want to delete a number of 128K
+		 * blocks.
+		 */
+		if (ir.ir_size < 32 * 1024)
+			ir.ir_size *= 128 * 1024;
 	}
 
 	switch (action) {


More information about the p4-projects mailing list