makefs: Remove the warning printed when makefs -t zfs is usedWe haven't seen bug reports relating to this feature for a while, sostop printing a warning.Approved by: re (kib)Reviewed by: cperci
makefs: Remove the warning printed when makefs -t zfs is usedWe haven't seen bug reports relating to this feature for a while, sostop printing a warning.Approved by: re (kib)Reviewed by: cpercivaMFC after: 2 weeks(cherry picked from commit d9fe71828797508d1d28655e40780a5ae9078e66)(cherry picked from commit ef89eefaa86f315feba6c44f2059582a077a78ed)
show more ...
makefs: Record a larger TXG number in the uberblockBy default, OpenZFS will perform metadata verification of the mostrecent TXGs, but this can be very slow since all data in a poolgenerated by ma
makefs: Record a larger TXG number in the uberblockBy default, OpenZFS will perform metadata verification of the mostrecent TXGs, but this can be very slow since all data in a poolgenerated by makefs was logically written in a single transaction.Avoid triggering this verification by default, but add an option torestore the previous behaviour and enable it in regression test cases.Reported by: cpercivaTested by: cperciva (previous version)MFC after: 2 weeks(cherry picked from commit 4e15366c6a6907bcd0e2c28885ba5878ed4280d2)
makefs/zfs: Add a regression test which checks file access permissionsMFC after: 3 daysSponsored by: The FreeBSD Foundation(cherry picked from commit 7e5002e3d6038b69e23f6c1982caf20cd62139f7)
makefs/zfs: Add a regression test which checks the 'used*' propertiesPR: 274613MFC after: 1 weekSponsored by: The FreeBSD Foundation
makefs/zfs tests: Add a test case which appends to a file after importMFC after: 1 weekSponsored by: The FreeBSD Foundation(cherry picked from commit b6da7f2fd127f447aa20843666b98d3a1d07b8c9)
makefs/zfs tests: Run zdb prior to importing makefs-created poolszdb contains quite a few assertions that can help catch bugs.MFC after: 1 weekSponsored by: The FreeBSD Foundation(cherry picke
makefs/zfs tests: Run zdb prior to importing makefs-created poolszdb contains quite a few assertions that can help catch bugs.MFC after: 1 weekSponsored by: The FreeBSD Foundation(cherry picked from commit 87534f95dd2ed51e01165e0072cb1c7790809a8b)
makefs: clean up some leftovers after $FreeBSD$ tag removalFixes: 2a63c3be1582
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
makefs tests: Do not run ZFS tests in parallelmakefs-created pools always have the same GUID and thus cannot beimported simultaneously.Reported by: olivier
makefs tests: Do not install ZFS tests if WITHOUT_ZFS is defined
makefs tests: Add test cases for handling of multiple staging dirsSponsored by: The FreeBSD Foundation
makefs tests: Whitespace fixesSponsored by: The FreeBSD Foundation
makefs tests: Re-enable the ZFS snapshot testThis reverts commit 35b587464afce15ff62600c3499d38cbb5b9f3d5.PR: 265849Sponsored by: The FreeBSD Foundation
makefs tests: Skip a ZFS regression test in CIIt triggers panics after the latest OpenZFS import.PR: 265849
makefs: Add ZFS supportThis allows one to take a staged directory tree and create a fileconsisting of a ZFS pool with one or more datasets that contain thecontents of the directory tree. This is
makefs: Add ZFS supportThis allows one to take a staged directory tree and create a fileconsisting of a ZFS pool with one or more datasets that contain thecontents of the directory tree. This is useful for creating virtualmachine images without using the kernel to create a pool; "zpool create"requires root privileges and currently is not permitted in jails.makefs -t zfs also provides reproducible images by using a fixed seedfor pseudo-random number generation, used for generating GUIDs and hashsalts. makefs -t zfs requires relatively little by way of machineresources.The "zpool_reguid" rc.conf setting can be used to ask a FreeBSD guest togenerate a unique pool GUID upon first boot.A small number of pool and dataset properties are supported. The poolis backed by a single disk vdev. Data is always checksummed usingFletcher-4, no redundant copies are made, and no compression is used.The manual page documents supported pool and filesystem properties.The implementation uses a few pieces of ZFS support from with the bootloader, especially definitions for various on-disk structures, but isotherwise standalone and in particular doesn't depend on OpenZFS.This feature should be treated as experimental for now, i.e., importantdata shouldn't be trusted to a makefs-created pool, and the command-lineinterface is subject to change.Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D35248
makefs: Remove execute permission from in-tree test scriptsLet the build system set it as needed. No functional change intended.MFC after: 1 weekSponsored by: The FreeBSD Foundation
makefs: fix calculation of file sizesWhen a new FS image is created we need to calculate how much space eachfile is going to consume.Fix two bugs in that logic:1) Count the space needed for ind
makefs: fix calculation of file sizesWhen a new FS image is created we need to calculate how much space eachfile is going to consume.Fix two bugs in that logic:1) Count the space needed for indirect blocks for large files.1) Normally the trailing data of a file is written to a block of frag size, 4 kB by default.However for files that use indirect blocks a full block is allocated,32kB by default. Take that into account.Adjust size calculations to match what is done in ffs_mkfs routine:* Depending on the UFS version the superblock is stored at a different offset. Take that into account.* Add the cylinder group block size.* All of the above has to be aligned to the block size.Finally, Remove "ncg" variable. It's always 1 and it was used tomultiply stuff.PR: 229929Reviewed by: mckusickMFC after: 2 weeksSponsored by: SemihalfSubmitted by: Kornel Dulęba <[email protected]>Differential Revision: https://reviews.freebsd.org/D35131Differential Revision: https://reviews.freebsd.org/D35132
Revert r362390, those tests are fixed by r362418PR: 247425Sponsored by: The FreeBSD Foundation
Skip ufs related tests in fstyp(8) and makefs(8) temporarilyThey are failing after r362358 and r362359.PR: 247425Sponsored by: The FreeBSD Foundation
makefs: Fix "time" mtree attribute handlingWhen processing mtree(5) MANIFEST files, makefs(8) previously threw anerror if it encountered an entry whose "time" attribute contained anon-zero subsec
makefs: Fix "time" mtree attribute handlingWhen processing mtree(5) MANIFEST files, makefs(8) previously threw anerror if it encountered an entry whose "time" attribute contained anon-zero subsecond component (e.g. time=1551620152.987220000).Update the handling logic to properly assign the subsecond component ifbuilt with nanosecond support, or silently discard it otherwise.Also, re-enable the time attribute for the kyua tests.PR: 194703Submitted by: Mitchell Horne <[email protected]>Differential Revision: https://reviews.freebsd.org/D19627
makefs(8): add test case for PR 229929Fix two failing makefs test cases by adding "-M 1m", which was already usedfor every other FFS test case. Add a new test case for the underlyingissue: with
makefs(8): add test case for PR 229929Fix two failing makefs test cases by adding "-M 1m", which was already usedfor every other FFS test case. Add a new test case for the underlyingissue: with no -M, -m, or -s options, makefs can underestimate image size.PR: 229929Reported by: JenkinsMFC after: 2 weeks
Check for cd9660 support before attempting to mount created imagesThis extends the set in r316028 to allow all tests to pass or be skippedon a system without cd9660 support.A better approach usi
Check for cd9660 support before attempting to mount created imagesThis extends the set in r316028 to allow all tests to pass or be skippedon a system without cd9660 support.A better approach using tar is possible, but this works today.Obtained from: CheriBSDSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D10516
Update several more URLs- Primarily http -> https- Primarily FreeBSD project URLs
Require strings(1) with :o_flag_preparer and :o_flag_publisherstrings(1) might not be installed on the system, e.g., if MK_TOOLCHAIN == noMFC after: 1 week
12