History log of /freebsd/sbin/newfs_msdos/newfs_msdos.c (Results 101 – 125 of 138)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# dc9ef4d1 06-Jul-1998 Robert Nordier <rnordier@FreeBSD.org>

Add newfs_msdos: extensive newfs-style support for creating FAT12,
FAT16, and FAT32 file systems in all their various horriblenesses.

Approved-in-concept by: joerg


# 2490c565 14-Feb-2010 Konstantin Belousov <kib@FreeBSD.org>

Rename variables to match msdosfs headers.

Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Reviewed by: bde
MFC after: 2 weeks


# fb95e056 14-Feb-2010 Konstantin Belousov <kib@FreeBSD.org>

Some cleanups from NetBSD:
- C99 initializers.
- Change the default volume label from "NO NAME" to "NO_NAME".
- Set OEM String to "BSD4.4 " following the unnamed spacing convention
in that other OS

Some cleanups from NetBSD:
- C99 initializers.
- Change the default volume label from "NO NAME" to "NO_NAME".
- Set OEM String to "BSD4.4 " following the unnamed spacing convention
in that other OS that suggests "MSWIN4.1"
Also, David Naylor's changes for Clang, mostly changing the signess
of constants.

Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Clang fixes by: David Naylor <naylor.b.david gmail com>
Reviewed by: bde (with some disagreement about Clang issues)
MFC after: 2 weeks

show more ...


Revision tags: release/7.2.0_cvs, release/7.2.0
# 9c797940 13-Apr-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

- Merge from HEAD


# 3c7bcffa 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

Do not prepend /dev/ when -C is used.

Submitted by: Christoph Mallon <christoph mallon gmx de>


# 36df607c 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

When using -C, do not warn when the file is not a character device, but warn when it is not a regular file.

Submitted by: Christoph Mallon <christoph mallon gmx de>


# f069c0af 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

Fix a bug in r185587.

fstat(fd, &sb) was not executed unconditionally anymore so sb was read
uninitialised when -C is used.

Submitted by: Christoph Mallon <christoph mallon gmx de>


# 18a06443 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

Use ftruncate() instead of lseek()+write()+lseek() to set the created
file (-C) to the requested size.

Submitted by: Christoph Mallon <christoph mallon gmx de>


# 20f96000 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

De-static local variables in main() (which is not recursive) and const-ify
others.

Submitted by: Christoph Mallon <christoph mallon gmx de>


# 101669c6 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

Show -@ and -C in usage, which were added in r185587.

Submitted by: Christoph Mallon <christoph mallon gmx de>


# b64e8d53 11-Apr-2009 Ed Schouten <ed@FreeBSD.org>

Clean up the usage() function to use a single fprintf().

Submitted by: Christoph Mallon <christoph mallon gmx de>


# 1829d5da 12-Mar-2009 Warner Losh <imp@FreeBSD.org>

Update the projects tree to a newer FreeBSD current.


# d461b46d 27-Feb-2009 Andriy Gapon <avg@FreeBSD.org>

newfs_msdos: allow to work with media that doesn't have any CHS params

Either use parameters provided by user or make them up.
The code for faking CHS params is borrowed from disklabel code.
The log

newfs_msdos: allow to work with media that doesn't have any CHS params

Either use parameters provided by user or make them up.
The code for faking CHS params is borrowed from disklabel code.
The logic for using user-provided and auto-guessed parameters is not
perfect, so to speak.

PR: bin/121182
Approved by: jhb (mentor)

show more ...


# d3adc655 04-Dec-2008 Max Laier <mlaier@FreeBSD.org>

Fix build - cast off_t to (intmax_t) for printing.


# b87d1601 03-Dec-2008 Luigi Rizzo <luigi@FreeBSD.org>

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 do

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

show more ...


# 045651ec 26-Nov-2008 Luigi Rizzo <luigi@FreeBSD.org>

Create a fake geometry (16 heads, 64 sectors) when dealing with
a plain file and a geometry is not explicitly supplied through
command line or disktab entry.

This way you can a FAT image on a file a

Create a fake geometry (16 heads, 64 sectors) when dealing with
a plain file and a geometry is not explicitly supplied through
command line or disktab entry.

This way you can a FAT image on a file as simply as this:

newfs_msdos ./some/file

(right now you need a much longer command

newfs_msdos -h 32 -u 64 -S 512 -s $total_blocks -o 0 ./some/file

Will be merged after 7.1 and 6.4 are released.
See also the related PR which suggests a similar change.

PR: bin/121182
MFC after: 4 weeks

show more ...


Revision tags: release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# 93c26a82 31-May-2007 Tom Rhodes <trhodes@FreeBSD.org>

The newfs_msdos utility does not store the boot signature in the
correct place on large sector disks. The boot signature should be at
offset 0x1fe in the BPB; newfs_msdos currently stores it 2 bytes

The newfs_msdos utility does not store the boot signature in the
correct place on large sector disks. The boot signature should be at
offset 0x1fe in the BPB; newfs_msdos currently stores it 2 bytes from
the end of the sector.

Taken from: NetBSD

show more ...


Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0
# d4b44279 17-Jan-2005 Xin LI <delphij@FreeBSD.org>

WARNS=6 cleanup:

- Initialize everything in the struct array, not only the mentioned
ones
- Unconditionally initialize hs to 0 to avoid repeatly doing so
- Cast to unsigned int when comparing

WARNS=6 cleanup:

- Initialize everything in the struct array, not only the mentioned
ones
- Unconditionally initialize hs to 0 to avoid repeatly doing so
- Cast to unsigned int when comparing to unsigned variables.

show more ...


Revision tags: release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1
# 6abefb4f 17-Feb-2004 Tim J. Robbins <tjr@FreeBSD.org>

Remove unnecessary newlines from errx() arguments.


Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0
# d702a854 03-Nov-2002 Scott Long <scottl@FreeBSD.org>

Bring newfs_msdos into the GEOM world. Totally rewrite and simplify
getdiskinfo(). For the fixed-disk case, bpb->hid probably isn't
handled correctly, but I'm not sure if this is a serious problem

Bring newfs_msdos into the GEOM world. Totally rewrite and simplify
getdiskinfo(). For the fixed-disk case, bpb->hid probably isn't
handled correctly, but I'm not sure if this is a serious problem since
the primary use of this program is to format floppy disks.

Reviewed by: phk

show more ...


Revision tags: release/4.7.0_cvs
# a1c254d8 04-Oct-2002 Peter Wemm <peter@FreeBSD.org>

EFI GPT partitions use 'p' as a slice seperator. eg: da0p1 or da0p217.
(There is a theoretical limit of 16384 partitions)


# ce66ddb7 21-Aug-2002 Tom Rhodes <trhodes@FreeBSD.org>

s/filesystem/file system/g as discussed on -developers


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 3468b317 16-May-2002 Tom Rhodes <trhodes@FreeBSD.org>

more file system > filesystem


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs, release/4.3.0_cvs, release/4.3.0, release/4.2.0
# eb2fc780 10-Oct-2000 Garrett Wollman <wollman@FreeBSD.org>

Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).


Revision tags: release/4.1.1_cvs
# 5306a1ec 15-Aug-2000 Robert Nordier <rnordier@FreeBSD.org>

Remove redundant code left over on removal of /dev/rXXX handling
in r1.12.


123456