History log of /netbsd-src/sbin/newfs_msdos/newfs_msdos.c (Results 1 – 25 of 45)
Revision Date Author Comments
# 285cf569 16-Feb-2017 christos <christos@NetBSD.org>

Allow 0 timestamp


# 29723468 16-Feb-2017 christos <christos@NetBSD.org>

add -T for reproducible builds (used in makefs)


# b46e0d15 23-Apr-2015 abs <abs@NetBSD.org>

newfs_msdos allowed suffixes such as 'k', 'm' for some parameters,
but amusingly this did not include Block size, or Sectors per cluster.
Allow for all numeric parameters (If I want to specify the nu

newfs_msdos allowed suffixes such as 'k', 'm' for some parameters,
but amusingly this did not include Block size, or Sectors per cluster.
Allow for all numeric parameters (If I want to specify the number
of drive heads as '1K', then why not?)

show more ...


# 30441591 23-Jan-2013 christos <christos@NetBSD.org>

fix regressions after split.


# aed35c48 21-Jan-2013 christos <christos@NetBSD.org>

Split the make fs portion into a function; do argument tests inside the
function.


# 913c04e5 15-Dec-2012 jakllsch <jakllsch@NetBSD.org>

There are two problems with insisting the FAT file system size be a multiple
of track-size units: 2) the FAT metadata areas may not be a multiple of a
"track", 1) the partition may not be track-alig

There are two problems with insisting the FAT file system size be a multiple
of track-size units: 2) the FAT metadata areas may not be a multiple of a
"track", 1) the partition may not be track-aligned to begin with, 0) what's
a "track"? is it something a robot rover leaves on Mars?

show more ...


# b7565c8f 04-Nov-2012 jakllsch <jakllsch@NetBSD.org>

According to current file(1) magic definitions an unlabeled FAT is
denoted with "NO NAME" rather than "NO_NAME".


# 1423b85c 31-Jul-2012 jakllsch <jakllsch@NetBSD.org>

Use correct values for minimum and maximum cluster counts for the various FAT
types. These values come from a publically-avaliable document of an
infallible source that must not be named due to a vi

Use correct values for minimum and maximum cluster counts for the various FAT
types. These values come from a publically-avaliable document of an
infallible source that must not be named due to a violation of the document's
license restrictions. This is justified by interoperability concerns.

show more ...


# 1f2df788 04-Jul-2012 jakllsch <jakllsch@NetBSD.org>

constify opts[]


# baa8e84b 29-Aug-2011 joerg <joerg@NetBSD.org>

Use __dead


# d69295fd 05-Mar-2011 pooka <pooka@NetBSD.org>

Set errno to 0 before strtoll() so that it can reliably be tested
afterwards. Fixes newfs_msdos at least on sparc. Incidentally,
the msdosfs tests also start working on sparc, which about halves
th

Set errno to 0 before strtoll() so that it can reliably be tested
afterwards. Fixes newfs_msdos at least on sparc. Incidentally,
the msdosfs tests also start working on sparc, which about halves
the number of test failures on that platform.

show more ...


# a2b5923e 11-Apr-2009 lukem <lukem@NetBSD.org>

fix sign-compare issues


# cfbede56 28-Mar-2009 he <he@NetBSD.org>

Add a cast to intmax_t and use %jd to print an off_t.
Fixes at least the alpha and amd64 builds.


# 4ff44dd1 28-Mar-2009 pooka <pooka@NetBSD.org>

remove troublesome printf specifier


# 32852ece 26-Mar-2009 pooka <pooka@NetBSD.org>

Apply revisions 1.23 and 1.24 from FreeBSD to autocalculate the
necessary geometry when creating a file system directly to a file.

In addition, when creating, do not complain about the file not
bein

Apply revisions 1.23 and 1.24 from FreeBSD to autocalculate the
necessary geometry when creating a file system directly to a file.

In addition, when creating, do not complain about the file not
being char special and do not try to execute device ioctl's on it.

show more ...


# 5dae591c 17-Feb-2009 christos <christos@NetBSD.org>

Use the wedge size, not the disk size, from Yorick Hardy


# 5be383f7 18-Jan-2009 mrg <mrg@NetBSD.org>

Do not erroneously leave a truncated 16-bit sector
count on "large" (>=32MB) file systems when fetching the geometry from
the medium. This confuses some software (which is to say Windows)
when a dev

Do not erroneously leave a truncated 16-bit sector
count on "large" (>=32MB) file systems when fetching the geometry from
the medium. This confuses some software (which is to say Windows)
when a device newfs(8)ed under NetBSD is transported to another
system. (Note: The rest of the code uses 'bsec', and DTRT for smaller
file systems.)

contributed anonymously.

show more ...


# a2f81087 26-Dec-2008 jmcneill <jmcneill@NetBSD.org>

The kernel now accepts BPB with heads > 255, so don't limit the number
of drive heads.


# b6f6f7a7 11-Aug-2008 christos <christos@NetBSD.org>

teach this about wedges.


# 628f1591 08-Feb-2007 drochner <drochner@NetBSD.org>

include <signal.h> where signal(3) is used


# 551466a6 21-Jan-2007 cbiere <cbiere@NetBSD.org>

Avoid crash if the filename contains no digits.


# 258fa36d 25-Nov-2006 scw <scw@NetBSD.org>

Don't use negative offsets from "bpb.bps" when writing out values such
as DOSMAGIC in the MBR. In non-512 byte media, the MBR is still 512
bytes in length.

Based on the patches provided in PR kern/1

Don't use negative offsets from "bpb.bps" when writing out values such
as DOSMAGIC in the MBR. In non-512 byte media, the MBR is still 512
bytes in length.

Based on the patches provided in PR kern/17398 by Trevin Beattie.

show more ...


# 851ac27d 16-Oct-2006 christos <christos@NetBSD.org>

c99 initializers


# c5acbf4d 27-Sep-2006 christos <christos@NetBSD.org>

Coverity CID 3788: comment out impossible code.


# 7d40b7b0 25-May-2006 christos <christos@NetBSD.org>

Coverity CID 830: Fix dead code issue


12