Date: Wed, 3 Dec 2008 18:22:36 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/newfs_msdos newfs_msdos.8 newfs_msdos.c Message-ID: <200812031822.mB3IMjYl001164@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812031822.mB3IMjYl001164>