From 7e4f3e4fe7b155149d20da8722bde07850217f80 Mon Sep 17 00:00:00 2001 From: kato Date: Fri, 7 Jan 2000 09:02:47 +0000 Subject: - Added 640KB and 1232KB formats support. - Added $FreeBSD$. Submitted by: nyan --- usr.sbin/fdformat/fdformat.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'usr.sbin/fdformat') diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c index a2014be..9c12af3 100644 --- a/usr.sbin/fdformat/fdformat.c +++ b/usr.sbin/fdformat/fdformat.c @@ -22,6 +22,8 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD$ */ /* @@ -240,10 +242,12 @@ main(int argc, char **argv) errx(2, "bad floppy size: %dK", format); case -1: suffix = ""; break; case 360: suffix = ".360"; break; + case 640: suffix = ".640"; break; case 720: suffix = ".720"; break; case 800: suffix = ".800"; break; case 820: suffix = ".820"; break; case 1200: suffix = ".1200"; break; + case 1232: suffix = ".1232"; break; case 1440: suffix = ".1440"; break; case 1480: suffix = ".1480"; break; case 1720: suffix = ".1720"; break; @@ -277,7 +281,9 @@ main(int argc, char **argv) if (intleave >= 0) fdt.f_inter = intleave; bytes_per_track = fdt.sectrac * (1<