From owner-cvs-src-old@FreeBSD.ORG Wed Dec 3 18:22:45 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B12AD1065675 for ; Wed, 3 Dec 2008 18:22:45 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9EFF38FC18 for ; Wed, 3 Dec 2008 18:22:45 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mB3IMj5d001165 for ; Wed, 3 Dec 2008 18:22:45 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mB3IMjYl001164 for cvs-src-old@freebsd.org; Wed, 3 Dec 2008 18:22:45 GMT (envelope-from luigi@repoman.freebsd.org) Message-Id: <200812031822.mB3IMjYl001164@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to luigi@repoman.freebsd.org using -f From: Luigi Rizzo Date: Wed, 3 Dec 2008 18:22:36 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/newfs_msdos newfs_msdos.8 newfs_msdos.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 18:22:45 -0000 luigi 2008-12-03 18:22:36 UTC FreeBSD src repository Modified files: sbin/newfs_msdos newfs_msdos.8 newfs_msdos.c Log: SVN rev 185587 on 2008-12-03 18:22:36Z by luigi Some useful operational extensions to newfs_msdos, especially when preparing images for emulators or flash devices: + option '-C size' to create the underlying image file with given size. Saves doing a 'dd' before, and especially it creates a sparse file + option '-@ offset' to build the FAT image at the specified offset in the image file or device; + make the cluster size adaptive on the filesystem size. Previously the default was 4k which is really unconvenient with large media; now it goes from 512 bytes to 32k depending on filesystem size (i still need to check whether it makes sense to go further up, to 64k or above); + fix default geometry when not specified on the command line, use 63 sectors/255 heads by default. Also trim the size so it exactly a multiple of a track, to avoid complaints in some filesystem code. + document all the above, plus some manual page clarifications. MFC after: 4 weeks Revision Changes Path 1.24 +50 -8 src/sbin/newfs_msdos/newfs_msdos.8 1.24 +100 -8 src/sbin/newfs_msdos/newfs_msdos.c