<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sbin/newfs_msdos, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-08-25T13:30:24Z</updated>
<entry>
<title>Fix makefs bootstrap on macOS after D25563</title>
<updated>2020-08-25T13:30:24Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2020-08-25T13:30:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6424881cc82a65a833fc6fb79730474caedf6222'/>
<id>urn:sha1:6424881cc82a65a833fc6fb79730474caedf6222</id>
<content type='text'>
The macOS assert.h header does not define static_assert when compiling in
C99 mode. To fix this compile with -std=c11.

Reviewed By:	emaste
Differential Revision: https://reviews.freebsd.org/D25928
</content>
</entry>
<entry>
<title>Use KERN_MAXPHYS.</title>
<updated>2020-07-05T00:19:08Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2020-07-05T00:19:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1cbad9d72bdd8ee16a0285fa73e6ccf6cfebe6ca'/>
<id>urn:sha1:1cbad9d72bdd8ee16a0285fa73e6ccf6cfebe6ca</id>
<content type='text'>
Suggested by:	imp
Reviewed by:	imp, cem (earlier version), emaste
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D25563
</content>
</entry>
<entry>
<title>Gather writes to larger chunks (MAXPHYS) instead of issuing them in</title>
<updated>2020-07-04T18:37:04Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2020-07-04T18:37:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=33c2d974d03d3c5fdbafd3c72611af84c4b78dc6'/>
<id>urn:sha1:33c2d974d03d3c5fdbafd3c72611af84c4b78dc6</id>
<content type='text'>
sectors.

On my SanDisk Cruzer Blade 16GB USB stick this made formatting much faster:

x before
+ after
+--------------------------------------------------------------------------+
|+                                                                         |
|+                                                                      x  |
|+                                                                      x x|
|A                                                                      MA||
+--------------------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   3         15.89         16.38            16         16.09     0.2570992
+   3          0.32          0.37          0.35    0.34666667   0.025166115
Difference at 95.0% confidence
	-15.7433 +/- 0.414029
	-97.8455% +/- 0.25668%
	(Student's t, pooled s = 0.182665)

Reviewed by:	emaste
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24508
</content>
</entry>
<entry>
<title>Fix the following -Werror warning from clang 10.0.0 in newfs_msdos:</title>
<updated>2020-01-28T20:10:26Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-01-28T20:10:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e54f2950a653595a2496c326f7dfe2e51972228d'/>
<id>urn:sha1:e54f2950a653595a2496c326f7dfe2e51972228d</id>
<content type='text'>
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 &lt; 1 || argc &gt; 2)
    ^

MFC after:	3 days
</content>
</entry>
<entry>
<title>Allow bootstrapping makefs on older FreeBSD hosts and Linux/macOS</title>
<updated>2020-01-27T12:02:41Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2020-01-27T12:02:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=162ae9c834f6d9f9cb443bd62cceb23e0b5fef48'/>
<id>urn:sha1:162ae9c834f6d9f9cb443bd62cceb23e0b5fef48</id>
<content type='text'>
In order to do so we need to install the msdosfs headers to the bootstrap
sysroot and avoid includes of kernel headers that may not exist on every
host (e.g. sys/lockmgr.h). This change should allow bootstrapping of makefs
on FreeBSD 11+ as well as Linux and macOS.

We also have to avoid using the IO_SYNC macro since that may not be
available. In makefs it is only used to switch between calling
bwrite() and bdwrite() which both call the same function. Therefore we
can simply always call bwrite().

For our CheriBSD builds we always bootstrap makefs by setting
LOCAL_XTOOL_DIRS='lib/libnetbsd usr.sbin/makefs' and use the makefs binary
from the build tree to create a bootable disk image.

Reviewed By:	brooks
Differential Revision: https://reviews.freebsd.org/D23201
</content>
</entry>
<entry>
<title>Fix a couple of minor issues with newfs_msdos:</title>
<updated>2019-12-08T01:20:37Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-12-08T01:20:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2780a26b6a306506ca521988799b5fa1cd5ce6c7'/>
<id>urn:sha1:2780a26b6a306506ca521988799b5fa1cd5ce6c7</id>
<content type='text'>
 - Do not unnecessarily strdup().
 - Check return value of getdiskinfo(), if it failed, bail out.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D22729
</content>
</entry>
<entry>
<title>Explicitly exit() instead of return in main().</title>
<updated>2019-12-03T07:03:25Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-12-03T07:03:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7b9934a1c692ef6b4a0d3183e5a6b382e8798b23'/>
<id>urn:sha1:7b9934a1c692ef6b4a0d3183e5a6b382e8798b23</id>
<content type='text'>
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>newfs_msdos: -A is incompatible with -r, not -o.</title>
<updated>2019-12-03T07:01:28Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-12-03T07:01:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e453f0166885c831686914a59f548ec274612d0c'/>
<id>urn:sha1:e453f0166885c831686914a59f548ec274612d0c</id>
<content type='text'>
PR:		242314
Submitted by:	Guy Yur &lt;guyyur gmail com&gt;
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>makefs: avoid warning when creating FAT filesystem on existing file</title>
<updated>2019-11-08T14:11:25Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2019-11-08T14:11:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=d9aee13f6fdad3de080ac0f8b9847daf6b9d567b'/>
<id>urn:sha1:d9aee13f6fdad3de080ac0f8b9847daf6b9d567b</id>
<content type='text'>
Previously the mkfs_msdos function (from newfs_msdos) emitted warnings
in the case that an image size is specified and the target is not a
file, or no size is specified and the target is not a character device.
The latter warning (not a character device) doesn't make sense when this
code is used in makefs, regardless of whether an image size is specified
or not.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>When creating a new FAT32 filesystem, use "unknown" (0xFFFFFFFF) for</title>
<updated>2019-08-22T06:14:06Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-08-22T06:14:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=aa9cb40e3066cdd54d656d0ce86763c52a1ed92c'/>
<id>urn:sha1:aa9cb40e3066cdd54d656d0ce86763c52a1ed92c</id>
<content type='text'>
FSI_Nxt_Free instead of providing a wrong value.

With this change, fsck_msdosfs would no longer complain about invalid
FSInfo information.

MFC after:	2 weeks
</content>
</entry>
</feed>
