363317 |
19-Jul-2020 |
delphij |
MFC r362937: Use KERN_MAXPHYS. |
363314 |
18-Jul-2020 |
delphij |
MFC r362936: Gather writes to larger chunks (MAXPHYS) instead of issuing them in sectors. |
357516 |
04-Feb-2020 |
dim |
MFC r351382 (by delphij):
When creating a new FAT32 filesystem, use "unknown" (0xFFFFFFFF) for FSI_Nxt_Free instead of providing a wrong value.
With this change, fsck_msdosfs would no longer complain about invalid FSInfo information.
MFC r355317 (by delphij):
newfs_msdos: -A is incompatible with -r, not -o.
PR: 242314 Submitted by: Guy Yur <guyyur gmail com>
MFC r357227:
Merge r357225 from the clang1000-import branch:
Fix the following -Werror warning from clang 10.0.0 in newfs_msdos:
sbin/newfs_msdos/newfs_msdos.c:181:2: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] if (o.align) { ^ sbin/newfs_msdos/newfs_msdos.c:179:5: note: previous statement is here if (argc < 1 || argc > 2) ^ |
355999 |
22-Dec-2019 |
delphij |
MFC r355318, r355513
r355318: Explicitly exit() instead of return in main().
r355513: Fix a couple of minor issues with newfs_msdos:
- Do not unnecessarily strdup(). - Check return value of getdiskinfo(), if it failed, bail out. |
343044 |
15-Jan-2019 |
kevans |
MFC r305074-r305075, r327275, r327570: newfs_msdos updates
r305074: Remove CHS alignment. It's not needed and causes problems for the BBB boot partition. NetBSD removed it in 1.10 in their repo some time ago.
r305075: The code only converts from bpbHugeSectors to bpbSectors if the sum of the hidden and huge sectors is less than or equal MAXU16. When formatting in Windows bpbSectors is still used for 63488 sectors and 2048 hidden (sum > MAXU16). The hidden sectors count is the number of sectors before the FAT16 Boot Record so it shouldn't affect the sector count. Attached patch (huge_sec_conversion.patch) to only check for bpb.bpbHugeSectors <= MAXU16 when converting to bpbSectors.
r327275: Close fd and fd1 before returning now that we're done with them.
r327570: Only call close if fd and fd1 are not -1.
PR: 183234 |
336329 |
16-Jul-2018 |
delphij |
MFC r335189:
Added option to cluster-align the start of the root directory.
Obtained from: Android Obtained from: https://android.googlesource.com/platform/system/core/+/052f27562154d175267999106bd6bf18fc8c363e Obtained from: https://android.googlesource.com/platform/system/core/+/8218b6aae9cd4a19fa074a8a8203fe9275b35447 Differential Revision: https://reviews.freebsd.org/D15672 |
336328 |
16-Jul-2018 |
delphij |
MFC r318355,318366: add -T (timestamp) option for reproducible builds |
330449 |
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended. |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
298250 |
19-Apr-2016 |
araujo |
Use nitems() from sys/param.h.
MFC after: 2 weeks.
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
291908 |
06-Dec-2015 |
ngie |
Fix leak in mkfs_msdos(..) by initializing img to NULL and free'ing at the end of the function
Differential Revision: https://reviews.freebsd.org/D4405 MFC after: 1 week PR: 204943 Reviewed by: emaste, jilles Reported by: David Binderman <dcb314@hotmail.com> Sponsored by: EMC / Isilon Storage Division
|
291385 |
27-Nov-2015 |
emaste |
Use netbsd usage() implementation in newfs_msdos
In r289629 newfs_msdos option descriptions are available in mkfs_msdos.h.
Obtained from: NetBSD
|
291382 |
27-Nov-2015 |
emaste |
mkfs_msdos: sync with NetBSD
Add a sanity test and clean up whitespace.
Obtained from: NetBSD
|
291219 |
23-Nov-2015 |
emaste |
newfs_msdos: rework error handling for eventual use in makefs
Return -1 on errors from mkfs_msdos() instead of err()/errx(), to allow different consumers to handle errors as appropriate.
Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
|
291218 |
23-Nov-2015 |
emaste |
Update $NetBSD$ ID
NetBSD mkfs_msdos.h rev 1.3 removed the no-endorsement clause from the license block, which had already been done in the source I imported in r289629.
|
289629 |
20-Oct-2015 |
emaste |
newfs_msdos: use NetBSD's mkfs_msdos.h verbatim for makefs compatibility
Sponsored by: The FreeBSD Foundation
|
289424 |
16-Oct-2015 |
emaste |
newfs_msdos: prefer snprintf to sprintf
Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
|
289376 |
15-Oct-2015 |
emaste |
newfs_msdos: move mkfs_msdos to separate file for later use in makefs
Sponsored by: The FreeBSD Foundation
|
289369 |
15-Oct-2015 |
emaste |
newfs_msdos: rework option parsing to match NetBSD
NetBSD split newfs_msdos in two so that they can reuse the file system creation part in makefs. This change is a step on the path of bringing that support to FreeBSD.
Reviewed by: kib, pfg Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3905
|
287396 |
02-Sep-2015 |
trasz |
It's 2015, and some people are still trying to use fdisk and then go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead.
Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first.
Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
281320 |
09-Apr-2015 |
pfg |
Update documented OEM string in newfs_msdos(8).
This was updated in r203868 to better match the naming scheme in other OSs that use FAT.
MFC after: 3 days
|
276737 |
06-Jan-2015 |
imp |
Remove old ioctl use and support, once and for all.
|
269953 |
13-Aug-2014 |
pfg |
Use "NO NAME" as the default unnamed label.
Microsoft recommends avoiding the use of spaces in the string structures for FAT. Unfortunately they do just that by default in the case of unlabeled filesystems.
Follow the default MS behavior to avoid confusion in common tools like file(1). This was actually the default behavior before r203868.
Obtained from: NetBSD (CVS rev. 1.39) MFC after: 3 days
|
267667 |
20-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part1)
PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
|
265164 |
30-Apr-2014 |
pfg |
Small cleanup: mostly whitespace vs. tabs.
|
264889 |
24-Apr-2014 |
emaste |
Correct min/max cluster counts for FAT12/16/32
FAT12 1..4084 FAT16 4085..65524 FAT32 65525..
This is required for interoperability with other FAT implementations, and in particular UEFI.
Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
|
255977 |
01-Oct-2013 |
pluknet |
Sweep man pages replacing ad -> ada.
Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only
|
255339 |
07-Sep-2013 |
pfg |
newfs_msdos: fix inaccurate comments.
The fields from deMTime and deMDate in the DOS directory entry are actually the last-modified time/date.
According to some online documentation these are the only timestamps available in FAT12/FAT16.
MFC after: 3 days
|
245648 |
19-Jan-2013 |
pfg |
newfs_msdos: cosmetical cleanups
- Simplify diagnostic messages. - Adopt lowercase first letters to make the messages more canonical.
PR: bin/175404 Submitted by: Christoph Mallon Reviewed by: bde MFC after: 3 days
|
231564 |
12-Feb-2012 |
ed |
Globally replace u_int*_t from (non-contributed) man pages.
The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types.
I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected.
MFC after: 1 month
|
228740 |
20-Dec-2011 |
pfg |
Many style fixes. Remove C99 initializers: they don't help in this case. Set errno to 0 before strtoll() (from NetBSD).
PR: 151850 Suggested by: bde Approved by: jhb (Mentor) MFC after: 2 weeks
|
227454 |
11-Nov-2011 |
delphij |
Use __packed to prevent alignment from taking place, which otherwise may change the on-disk format in an incompatible way. Without this change, msdosfs created on FreeBSD/arm would not be mountable.
PR: bin/162486 Submitted by: Ian Lepore <freebsd damnhippie dyndns org> Reported by: Mattia Rossi <mrossi at swin.edu.au> MFC after: 3 days
|
223946 |
12-Jul-2011 |
ae |
Use NULL instead of 0 for third argument of sigaction(2).
Pointed by: kib MFC after: 2 weeks
|
223945 |
12-Jul-2011 |
ae |
Add SIGINFO handler.
Reviewed by: kib Obtained from: NetBSD (partly) MFC after: 2 weeks
|
211725 |
23-Aug-2010 |
imp |
MFtbemd:
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
|
210463 |
25-Jul-2010 |
bcr |
Clarify that the "number of bytes per sector"-range in the -S option is meant to be "inclusive".
The original issue of the PR was already fixed.
PR: docs/142418 Submitted by: David Naylor (naylor dot b dot david at gmail dot com) No objection from: kib MFC after: 5 days
|
203869 |
14-Feb-2010 |
kib |
Rename variables to match msdosfs headers.
Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks
|
203868 |
14-Feb-2010 |
kib |
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
|
198236 |
19-Oct-2009 |
ru |
Switch the default WARNS level for sbin/ to 6.
Submitted by: Ulrich Spörlein
|
190936 |
11-Apr-2009 |
ed |
Style fixes to the newfs_msdos manpage.
Submitted by: Christoph Mallon <christoph mallon gmx de>
|
190933 |
11-Apr-2009 |
ed |
Update documentation (forgotten in r190929).
Submitted by: Christoph Mallon <christoph mallon gmx de>
|
190932 |
11-Apr-2009 |
ed |
Do not prepend /dev/ when -C is used.
Submitted by: Christoph Mallon <christoph mallon gmx de>
|
190931 |
11-Apr-2009 |
ed |
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>
|
190930 |
11-Apr-2009 |
ed |
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>
|
190929 |
11-Apr-2009 |
ed |
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>
|
190927 |
11-Apr-2009 |
ed |
De-static local variables in main() (which is not recursive) and const-ify others.
Submitted by: Christoph Mallon <christoph mallon gmx de>
|
190925 |
11-Apr-2009 |
ed |
Show -@ and -C in usage, which were added in r185587.
Submitted by: Christoph Mallon <christoph mallon gmx de>
|
190924 |
11-Apr-2009 |
ed |
Clean up the usage() function to use a single fprintf().
Submitted by: Christoph Mallon <christoph mallon gmx de>
|
189112 |
27-Feb-2009 |
avg |
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)
|
185594 |
03-Dec-2008 |
mlaier |
Fix build - cast off_t to (intmax_t) for printing.
|
185587 |
03-Dec-2008 |
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
|
185345 |
26-Nov-2008 |
luigi |
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
|
174478 |
09-Dec-2007 |
remko |
Be more accurate in the maximum filesize, it's 4GB not 4.3GB.
Reported by: njl
|
174466 |
08-Dec-2007 |
remko |
.Ed is not needed here, remove it.
Noticed by: brueffer
|
174460 |
08-Dec-2007 |
remko |
Add information about the maximum file size for msdosfs.
PR: docs/112935 Submitted by: Julian Stacey <jhs at berklix dot org> Actually this was inspired by the ticket submitted by Julian. MFC After: 3 days
|
170166 |
31-May-2007 |
trhodes |
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
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
140691 |
24-Jan-2005 |
cognet |
Bring back WARNS to 3 for arm until I figure out how to make gcc happy.
|
140415 |
18-Jan-2005 |
ru |
Sort sections.
|
140385 |
17-Jan-2005 |
delphij |
Oops... Remove the line leaked in the last commit which is not intended to be there...
|
140384 |
17-Jan-2005 |
delphij |
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.
|
140368 |
17-Jan-2005 |
ru |
Added the EXIT STATUS section where appropriate.
|
131488 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
126178 |
23-Feb-2004 |
johan |
style.Makefile(5): Use WARNS?= instead of WARNS=.
|
125916 |
17-Feb-2004 |
tjr |
Remove unnecessary newlines from errx() arguments.
|
110105 |
30-Jan-2003 |
nyan |
Additional PC98 option is not needed.
|
106372 |
03-Nov-2002 |
scottl |
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
|
104429 |
04-Oct-2002 |
peter |
EFI GPT partitions use 'p' as a slice seperator. eg: da0p1 or da0p217. (There is a theoretical limit of 16384 partitions)
|
102231 |
21-Aug-2002 |
trhodes |
s/filesystem/file system/g as discussed on -developers
|
99501 |
06-Jul-2002 |
charnier |
The .Nm utility
|
96707 |
16-May-2002 |
trhodes |
more file system > filesystem
|
87325 |
04-Dec-2001 |
obrien |
Default to WARNS=2. Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
|
81622 |
14-Aug-2001 |
ru |
mdoc(7) police: s/BSD/.Bx/ where appropriate.
|
74815 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74531 |
20-Mar-2001 |
ru |
Set the default manual section for sbin/ to 8.
|
72536 |
16-Feb-2001 |
nyan |
Added pc98 support.
Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
|
70152 |
18-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
68960 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
66907 |
10-Oct-2000 |
wollman |
Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby <time.h>).
|
64685 |
15-Aug-2000 |
rnordier |
Remove redundant code left over on removal of /dev/rXXX handling in r1.12.
|
64682 |
15-Aug-2000 |
rnordier |
Partially revert r1.12, in which a warnx() if the device is not a character device is changed to an errx(). This unnecessarily compromises device independence.
|
64293 |
06-Aug-2000 |
rnordier |
Consistency fix.
|
63892 |
26-Jul-2000 |
asmodai |
Fix the reporting of a raw device node.
Change a warnx to an errx since we should only attempt to use this utility on a character device.
Approved by: green
|
60127 |
07-May-2000 |
kris |
Update device names in examples.
|
59215 |
14-Apr-2000 |
imp |
Better error message for a case that I hit.
|
58814 |
30-Mar-2000 |
kato |
Added 640KB and 1232KB formats, which were standard MS-DOS formats of 2DD and 2HD disks in Japan.
Submitted by: Shigeharu TAKENO <shige@iee.niit.ac.jp> Pointed out by: chi@bd.mbn.or.jp (Chiharu Shibata)
|
57668 |
01-Mar-2000 |
sheldonh |
Remove single-space hard sentence breaks. These degrade the quality of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
48954 |
21-Jul-1999 |
billf |
Avoid ambigious if-else
|
42261 |
03-Jan-1999 |
jkh |
Clean up some more residual /usr/mdec references. I left all the extra rbootd/boot rom cruft pointing at /usr/mdec since it either doesn't exist or doesn't work anyway, so who cares? :)
|
41586 |
07-Dec-1998 |
rnordier |
Use '#' flag in place of "0x" in format strings.
|
40487 |
17-Oct-1998 |
bde |
Don't assume that time_t is long.
|
40184 |
10-Oct-1998 |
rnordier |
Kill an extraneous dot. PR: 8103 Submitted by: Kazuo Horikawa <horikawa@jp.freebsd.org>
|
39771 |
29-Sep-1998 |
obrien |
Add history.
|
38702 |
31-Aug-1998 |
wosch |
Sort cross references.
|
37759 |
19-Jul-1998 |
rnordier |
Minor consistency fixes.
|
37708 |
16-Jul-1998 |
rnordier |
Reverse charnier's changes to usage.
|
37665 |
15-Jul-1998 |
charnier |
Correct use of .Nm. Remove unused #includes. Short usage() string, see man page for details.
|
37447 |
06-Jul-1998 |
rnordier |
This commit was generated by cvs2svn to compensate for changes in r37446, which included commits to RCS files with non-trunk default branches.
|