<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/makefs/tests/makefs_tests_common.sh, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-01-05T20:34:03Z</updated>
<entry>
<title>makefs: tests: Fix timestamp-related tests</title>
<updated>2026-01-05T20:34:03Z</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@FreeBSD.org</email>
</author>
<published>2026-01-05T20:34:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=93b15dbc1fbc3c33c9bd53091b28c3b629d0abe1'/>
<id>urn:sha1:93b15dbc1fbc3c33c9bd53091b28c3b629d0abe1</id>
<content type='text'>
Use a variable for mtree that includes the DEFAULT_MTREE_KEYWORDS, in
order to avoid missing the important "time" keyword or passing an
unimplemented "nlink" keyword.

Unskip the "failing" tests, and comment out the specific failing checks,
these will be addressed (or at least discussed) in a different revision.

For MS-DOS tests, use an even value timestamp, as precision is 2s.

For ZFS tests, use import_image instead of mount_image consistently.

Reviewed by:	bnovkov, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54429
</content>
</entry>
<entry>
<title>makefs: tests: Fix -D flag test</title>
<updated>2026-01-05T20:33:27Z</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@FreeBSD.org</email>
</author>
<published>2026-01-05T20:33:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=96efda9cd55689ef3fa067281d8b0a42a7122536'/>
<id>urn:sha1:96efda9cd55689ef3fa067281d8b0a42a7122536</id>
<content type='text'>
As stated in the manual page:

-F is almost certainly not the option you are looking for.  To
create an image from a list of files in an mtree format manifest,
specify it as the last argument on the command line, not as the
argument to -F.

This change does exactly that.  Also bug #192839 has already been fixed.

Reviewed by:	ngie
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54428
</content>
</entry>
<entry>
<title>makefs: tests: Cleanup and remove default flags</title>
<updated>2026-01-05T20:32:46Z</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@FreeBSD.org</email>
</author>
<published>2026-01-05T20:32:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a6deb87c2802a47709c58d09b5f9122ed40c157'/>
<id>urn:sha1:0a6deb87c2802a47709c58d09b5f9122ed40c157</id>
<content type='text'>
Cleanup and remove default atf_check flags for clarity.  The following
two lines are equivalent:

    atf_check $cmd
    atf_check -s exit:0 -e empty -o empty $cmd

Update the links to the reference documents.

Remove the D_flag_cleanup function, as common_cleanup() for these
particular set of tests does two things:

1. Unmount the md(4) device.
2. Destroy the md(4) device.

Essentially, one should only call common_cleanup() if the test body
invokes mount_image().  This is not the case for D_flag_body().

No functional changes intended.

Reviewed by:	ngie
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54427
</content>
</entry>
<entry>
<title>makefs: Add tests for the -T flag</title>
<updated>2025-05-20T09:50:31Z</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2025-03-25T12:54:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=964b0ece795a4e2c811753873bf6883ffb160af8'/>
<id>urn:sha1:964b0ece795a4e2c811753873bf6883ffb160af8</id>
<content type='text'>
Add tests for the -T flag to each makefs backend. This includes tests
for both mtree and directory scan options.

PR:             285630
Sponsored by:   Klara, Inc.
Sponsored by:   The FreeBSD Foundation
Reviewed by:    markj, emaste, kevans, jlduran
Differential Revision:  https://reviews.freebsd.org/D49492
</content>
</entry>
<entry>
<title>makefs: Fix cd9660 duplicate directory names</title>
<updated>2024-12-30T19:48:44Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-12-30T15:01:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1f31d437428014e864bcce1223cf7017180e2608'/>
<id>urn:sha1:1f31d437428014e864bcce1223cf7017180e2608</id>
<content type='text'>
Previously we could create cd9660 images with duplicate short (level 2)
names.

cd9660_level2_convert_filename used a 30-character limit (for files and
directories), not including the '.' separator.  cd9660_rename_filename
used a 31-character limit, including the '.'.  Directory names 31
characters or longer (without '.') were shortened to 30 characters, and
if a collision occurred cd9660_rename_filename uniquified them starting
with the 31st character.  Unfortunately the directory record's name_len
was already set, so the unique part of the name was stripped off.

Directories are up to 31 d-characters (i.e., A-Z 0-9 and _); there is no
provision for a '.' in a directory name.  Increase the name length limit
to 31 for directories, and exclude '.'s.

This name mapping and deduplication code is still fragile and convoluted
and would beenfit from a more holistic effort.

PR:		283238, 283112
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48251
</content>
</entry>
<entry>
<title>makefs: clean up some leftovers after $FreeBSD$ tag removal</title>
<updated>2023-08-16T20:24:37Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-03-30T14:02:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=90aad5d3e44d137ce80d2ec257de07c7c1367bd3'/>
<id>urn:sha1:90aad5d3e44d137ce80d2ec257de07c7c1367bd3</id>
<content type='text'>
Fixes: 2a63c3be1582
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>makefs: Remove execute permission from in-tree test scripts</title>
<updated>2022-05-19T15:46:02Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-03-23T17:32:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21add93b58189322b00421f428917759a7034736'/>
<id>urn:sha1:21add93b58189322b00421f428917759a7034736</id>
<content type='text'>
Let the build system set it as needed.  No functional change intended.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>makefs: Fix "time" mtree attribute handling</title>
<updated>2019-03-18T19:26:36Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2019-03-18T19:26:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=286258a9a0e39cfce79d3b072a665b88bfb422c7'/>
<id>urn:sha1:286258a9a0e39cfce79d3b072a665b88bfb422c7</id>
<content type='text'>
When processing mtree(5) MANIFEST files, makefs(8) previously threw an
error if it encountered an entry whose "time" attribute contained a
non-zero subsecond component (e.g. time=1551620152.987220000).

Update the handling logic to properly assign the subsecond component if
built with nanosecond support, or silently discard it otherwise.

Also, re-enable the time attribute for the kyua tests.

PR:		194703
Submitted by:	Mitchell Horne &lt;mhorne063@gmail.com&gt;
Differential Revision:	https://reviews.freebsd.org/D19627
</content>
</entry>
<entry>
<title>Clean up mtree keyword support a slight bit and add a few more default keywords</title>
<updated>2015-11-02T10:08:00Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2015-11-02T10:08:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c213f0dbec73b2d8c10dfb86e693c40414b6626e'/>
<id>urn:sha1:c213f0dbec73b2d8c10dfb86e693c40414b6626e</id>
<content type='text'>
- Parameterize the mtree keywords as $DEFAULT_MTREE_KEYWORDS
- Test with the extra mtree keywords, `mode,gid,uid`.
- Add a note about mtrees with time support not working with makefs right now

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
</content>
</entry>
</feed>
