small newfs_msdos addition

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Nov 25 05:40:31 PST 2008


On Tue, Nov 25, 2008 at 10:41:25AM +0100, Luigi Rizzo wrote:
> If there are no objections I'd like to commit the small patch below
> to newfs_msdos.c -- all it does is create a fake geometry if
> it cannot get the media size, which is handy when you want to
> create a filesystem image on a regular file.
> 
> Before the patch you need to do
> 
>   newfs_msdos -h 32 -s 64 -o 0 -S 512 -s `du -k /the/file` /the/file
> 
> after the patch it becomes
> 
>   newfs_msdos /the/file
> 
> which is a bit more friendly especially if you have to type it manually.

Yes, please!

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20081125/12da7bbe/attachment.pgp


More information about the freebsd-current mailing list