Date: Tue, 26 Jun 2012 01:13:28 GMT From: Brooks Davis <brooks@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 213472 for review Message-ID: <201206260113.q5Q1DSW5057966@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@213472?ac=10 Change 213472 by brooks@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206260113.q5Q1DSW5057966>