303975 |
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
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
|
301879 |
14-Jun-2016 |
emaste |
makefs: Provide a -T option to set timestamps to a consistent value
This is taken from the NetBSD versions listed below and adapted to the makefs version in FreeBSD, along with a bug fix from cem@ that will be sent to NetBSD.
Reviewed by: pfg Approved by: re (gjb) Obtained from: NetBSD MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D6835
|
300170 |
18-May-2016 |
sjg |
Initialize date of rootNode.
Reviewed by: jtl
|
300098 |
18-May-2016 |
pfg |
makefs(8): Clarify the comment concerning seeding.
Avoid giving the impression makefs currently supports reproduceable builds.
|
300069 |
17-May-2016 |
pfg |
makefs(1): use all the random(3) range.
The generation number is uint32_t so we can fit the complete range of random(3). We could have used arc4random() but the result would be unpredictable and it would prohibit reproducible builds.
While here add a comment where seeding is done: this affects reproducible builds and might have to be re-visited to use a release dependent value.
MFC after: 2 weeks
|
300064 |
17-May-2016 |
pfg |
makefs(8): use NULL instead of zero for pointers.
|
299953 |
16-May-2016 |
truckman |
Fix an off by one error to avoid overflowing rp[].
Reported by: Coverity CID: 1007579
|
299461 |
11-May-2016 |
cem |
ffs_bswap: Copy one UFS dinode member at a time
No functional change.
Reported by: Coverity CIDs: 974635, 974636, 977396, 977397, 977398, 977399 Sponsored by: EMC / Isilon Storage Division
|
299094 |
04-May-2016 |
ngie |
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed after r298107
Summary of changes:
- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)
Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info.
MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
|
298911 |
02-May-2016 |
araujo |
Use MIN/MAX macros from sys/param.h.
MFC after: 2 weeks.
|
298180 |
18-Apr-2016 |
araujo |
The malloc will return NULL if it can't allocate memory.
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
|
296587 |
09-Mar-2016 |
bdrewery |
DIRDEPS_BUILD: Connect MK_TESTS.
Sponsored by: EMC / Isilon Storage Division
|
294891 |
27-Jan-2016 |
ngie |
Require /sbin/mount_cd9660 when running the cd9660 tests
In some cases the test system might not have mount_cd9660(8). Don't implicitly rely on it while testing cd9660 support; explicitly rely on it
MFC after: 1 week Reported by: mjohnston Sponsored by: EMC / Isilon Storage Division
|
292884 |
29-Dec-2015 |
ngie |
Fix getopt(3) argument after r290180; I forgot to change -r to -R by accident
MFC after: 3 days Pointyhat to: ngie Reported by: vangyzen Sponsored by: EMC / Isilon Storage Division
|
292549 |
21-Dec-2015 |
emaste |
makefs: use ENTRY macro for diff reduction with NetBSD
Sponsored by: The FreeBSD Foundation
|
291052 |
19-Nov-2015 |
emaste |
Remove clauses 3 and 4 from makefs newfs_extern.h
Obtained from: NetBSD
|
290602 |
09-Nov-2015 |
ngie |
Bump .Dd
|
290601 |
09-Nov-2015 |
ngie |
Follow up to r290259 dealing with makefs(8)
- Don't use contractions (don't -> do not) - Change "throw away" to "discard" when describing the -o keep-bad-images option - Revert author e-mail split I brought over from NetBSD, effectively reverting the change bapt made in r267668
MFC after: 3 days Submitted by: bjk Sponsored by: EMC / Isilon Storage Division
|
290270 |
02-Nov-2015 |
ngie |
Add testcases for -t ffs -o version=[12]
Verify the filesystem type using dumpfs. Add preliminary support for NetBSD (needs to be validated)
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290268 |
02-Nov-2015 |
ngie |
Sync minor whitespace / type changes in ffs_csum_swap and ffs_sb_swap with src/sys/ufs/ffs/ffs_bswap.c@1.39
Obtained from: NetBSD MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290267 |
02-Nov-2015 |
ngie |
Clean up mtree keyword support a slight bit and add a few more default keywords
- 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
|
290265 |
02-Nov-2015 |
ngie |
Add testcases for -t cd9660 -o isolevel=[1-3]
-- -o isolevel=1 currently fails because of path comparison issues, so mark it as an expected failure. -- -o isolevel=3 is not implemented, so expect it to fail as an out of bounds value [*].
PR: 203645 MFC after: 1 week X-MFC with: r290264 Sponsored by: EMC / Isilon Storage Division
|
290264 |
02-Nov-2015 |
ngie |
Limit isoLevel to 1 and 2 to avoid segfaulting when isoLevel is set to 3 by dereferencing a NULL function pointer
Add some asserts to ensure that isolevel is always either 1 or 2.
PR: 203645 Reported by: Thomas Schmitt <scdbackup@gmx.net> MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290262 |
02-Nov-2015 |
ngie |
Fix spelling of `isolevel` cd9660 option
MFC after: 1 week X-MFC with: r290260 Sponsored by: EMC / Isilon Storage Division
|
290261 |
02-Nov-2015 |
ngie |
Bump .Dd for r290259 and r290260
|
290260 |
02-Nov-2015 |
ngie |
Document undocumented long options for -t cd9660
Note which options have been implemented and which options haven't been implemented
Submitted as the following NetBSD PRs: bin/50390 and bin/50392
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290259 |
02-Nov-2015 |
ngie |
Sync makefs(8) content a bit with src/usr.sbin/makefs/makefs.8@1.53
Sections involving unimplemented filesystems (chfs, msdosfs, udf, v7fs) and options have been omitted.
MFC after: 1 week Obtained from: NetBSD Sponsored by: EMC / Isilon Storage Division
|
290180 |
30-Oct-2015 |
ngie |
Follow up to roundup feature addition in r289203
- Rename -r to -R to avoid the clash with makefs -r in NetBSD - Note that -R is an FFS-specific option because it's not implemented in cd9660 today - Rename the roundup variable to "roundup-size" in the manpage and help text for consistency with other variables. - Bump .Dd (missed in r289203)
PR: 203707 MFC after: 1 week X-MFC with: r289203 Differential Revision: https://reviews.freebsd.org/D3959 Reviewed by: adrian (earlier patch), emaste Sponsored by: EMC / Isilon Storage Division
|
289902 |
24-Oct-2015 |
ngie |
Add a regression test for r289899 to validate rockridge encoding of device types
X-MFC with: r289899 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
289901 |
24-Oct-2015 |
ngie |
Remove an ls -l I was using for debugging
MFC after: 2 weeks X-MFC with: r289897 Sponsored by: EMC / Isilon Storage Division
|
289899 |
24-Oct-2015 |
ngie |
Import the fix from NetBSD kern/48852 (sic) to fix rockridge encoding of device nodes
In particular, use st_rdev (the device type), not st_dev (the device inode), and fix the comparison to be correct with the st_rdev field
Bug 203648 MFC after: 2 weeks Submitted by: Thomas Schmitt <scdbackup@gmx.net> Coverity CID: 1008927 Sponsored by: EMC / Isilon Storage Division
|
289897 |
24-Oct-2015 |
ngie |
Add more cd9660/FFS makefs testcases
General changes: - Parameterize out the mount command. - Use mtree to verify the contents of an image (check_image_contents) instead of using diff (diff verifies content, but not file metadata). - Move common logic out to functions (common_cleanup, mount_image, check_image_contents) - Add stub testcases for makefs -D (crashes with SIGBUS, similar to bug # 192839) - Add a note about the ISO-9660 and rockridge specs - Add testcases that exercise: -- Creating disk images from an mtree and multiple directories. -- -F flag use (not really an extensive testcase right now)
cd9660-specific test changes:
- Remove an XXX comment about symlinks; I forgot that non-rockridge images turn symlinks into hardlinks. - Add testcases that exercise: -- -o allow-deep-trees -- -o allow-max-name stub testcase (doesn't seem to be implemented in makefs) -- -o preparer (existence in image; not conformance to spec) -- -o publisher (existence in image; not conformance to spec) -- -o rockridge (basic)
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
289743 |
22-Oct-2015 |
ngie |
Revise "create_test_inputs" to simplify the file structure as these testcases don't need to be nested as much as bin/ls/ls_tests.sh do when verifying ls -a, ls -A, etc. This allows the tests to make all paths relative to the top of the temporary directory instead of always tacking on $ATF_TMPDIR, thus complicating things unnecessarily
Create non-empty files in create_test_inputs as well now, similar to create_test_inputs2 in bin/ls/ls_tests.sh
Compare the input files to the output file contents using diff where possible: - Skip over the fifo comparison for now because it always fails - Skip over the symlink comparison on cd9660 because it always fails today
Sponsored by: EMC / Isilon Storage Division MFC after: 2 weeks X-MFC with: r289739
|
289739 |
22-Oct-2015 |
ngie |
Correctly reintroduce the rudimentary smoke tests I botched up in r289684
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
289695 |
21-Oct-2015 |
ngie |
Revert r289694
I committed some other undesirable local changes by accident
|
289694 |
21-Oct-2015 |
ngie |
Add some rudimentary [smoke] testcases for makefs
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
289693 |
21-Oct-2015 |
ngie |
Unbreak makefs -t cd9660 after r289687
buffer_head needs to be freed -- not buffer
Detected by jemalloc, i.e. running makefs failed the arena assert because my copy of malloc on CURRENT is compiled with the default !MALLOC_PRODUCTION asserts on
Pointyhat to: ngie PR: 203647 X-MFC with: r289687 Sponsored by: EMC / Isilon Storage Division
|
289687 |
21-Oct-2015 |
ngie |
Free buffer before returning from cd9660_write_path_table to avoid leaking it after returning from the function
MFC after: 1 week PR: 203647 Submitted by: Thomas Schmitt <scdbackup@gmx.net> Coverity CID: 978431 Sponsored by: EMC / Isilon Storage Division
|
289677 |
21-Oct-2015 |
eadler |
Fix a ton of speelling errors
arc lint is helpful
Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
|
289601 |
19-Oct-2015 |
ngie |
Don't check if `val` is NULL before calling free; free(3) already handles this
MFC after: 1 week PR: 203649 Submitted by: Thomas Schmitt <scdbackup@gmx.net> Coverity CID: 1305659 Sponsored by: EMC / Isilon Storage Division
|
289225 |
13-Oct-2015 |
sbruno |
makefs(8) leaves sblock.fs_providersize uninitialized (zero) that can be easily checked with dumpfs(8). This may lead to other problems, f.e. geom_label kernel module sanity checks do not like zero fs_old_size value and skips such UFS1 file system while tasting (fs_old_size derives from sblock.fs_providersize).
PR: 203704 Submitted by: eugen@grosbein.net Reviewed by: marcel
|
289203 |
13-Oct-2015 |
adrian |
makefs: introduce a new option to specify what to round the resulting image up to.
From ticket:
While trying to run FreeBSD/mips on some device having very small flash media, one is forced to compress file system with mkulzma(8) utility. It is desirable to specify small UFS block/fragment sizes like 4096/512 bytes for makefs(8) and big compression block size like 65535 bytes to mkulzma at the same time. Then one obtains very good comression ratios (like 75% and more) but faces the following problem.
geom_uncompress kernel module reports GEOM provider size rounded up to its compression block size. Generally, this changes original media size and now it fails to match the size of embedded UFS file system that leads to other problems, f.e. geom_label kernel module does not like this and skips the file system while tasting the GEOM and looking for UFS label.
This makes it impossible to refer to the file system using known UFS label instead of something like /dev/map/rootfs.uncompress.
The following patch introduces new command line option "-r roundup" for makefs that makes it round up the image to specified block size. Hence, geom_uncompress does not change GEOM media size for images rounded that way and geom_label accepts such GEOMs just fine.
With the patch applied, one can use following commands:
$ makefs -t ffs -r 65536 -o bsize=4096,fsize=512,label=flash optimization=space fs.img fs $ mkulzma -s 65536 -o fs.img.ulzma fs.img
PR: bin/203707 Submitted by: <eugen@grosbein.net>
|
287417 |
03-Sep-2015 |
delphij |
Don't leak 'var'.
Reported by: clang static analyzer
|
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
|
277085 |
12-Jan-2015 |
brueffer |
Fix a typo in the FFS maxbpg option, it was erroneously spelled maxbpf.
The error exists in the NetBSD upstream version as well and will be reported back.
PR: 196598 Submitted by: Dan McGregor MFC after: 1 week
|
274990 |
24-Nov-2014 |
bapt |
Convert makefs to LIBADD
Add definition of libnetbsd in src.libnames.mk
|
271736 |
18-Sep-2014 |
davide |
r258695 introduces a sanity check for makefs in order to verify that the minimum image size specified is always less than the maximum image size. If makefs(1) is invoked specifying minimum image size, but not maximum one, the program exits with an error. Example:
# sudo -E makefs -M 538968064 -B be /home/davide/disk.img $DESTDIR makefs: `/home/davide/tftproot/mips' minsize of 538968064 rounded up to ffs bsize of 8192 exceeds maxsize 0. Lower bsize, or round the minimum and maximum sizes to bsize.
Assert then that minsize < maxsize iff maxsize is specified. This change allows me to build MIPS images using makefs(1) and following what specified in the wiki again.
Reviewed by: jmallett, ngie
|
270168 |
19-Aug-2014 |
bdrewery |
Revert r267233 for now. PIE support needs to be reworked.
1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed.
We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled.
Reported by: kib
|
267668 |
20-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part2)
PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
|
267233 |
08-Jun-2014 |
bdrewery |
In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.
This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR.
Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2]
Mark known build failures as NO_PIE for now.
The only known runtime failure was rtld.
[1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
|
266930 |
31-May-2014 |
jmg |
convert to using the _daddr_t types like newfs was...
Put the superblock in the correct possition for UFS2... There is a bug in FFS that if we don't put it here (for UFS2), it will forcefully relocate the superblock, and I believe cause data loss..
I have a fix for that, but w/ how many releases are broken, we won't be able to switch to the better _FLOPPY (block 0) for this for a while..
|
264186 |
06-Apr-2014 |
marcel |
Timestamps may not have a decimal point. While here, consistently use sbuf_new_auto().
|
262749 |
04-Mar-2014 |
sjg |
Allow comments at end of line.
Reviewed by: marcel
|
260041 |
29-Dec-2013 |
marius |
Record the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number, i. e. the POSIX:5.6.1 st_ino field, which can be used to detect hard links in the file system. This is also the default in mkisofs(8) and according to its man page, no system only being able to cope with Rock Ridge version 1.10 is known to exist.
PR: 185138 Submitted by: Kurt Lidl MFC after: 1 week
|
258695 |
27-Nov-2013 |
jmallett |
Provide a helpful diagnostic when the minimum size rounded to the block size would exceed the maximum size. This can be a difficult problem to diagnose if one is, for instance, using -s with a fixed size in a script and the bsize calculated for a filesystem image changes, necessitating a re-rounding of the image size or a hand-setting of the bsize. Previously one would get a cryptic message about how the size exceeded the maximum size, which normally only happens if the contents of the image are larger than specified.
|
254397 |
16-Aug-2013 |
gjb |
Mark the makefs(8) '-p' flag as deprecated in preference for the '-Z' flag for compatibility with NetBSD.
Submitted by: Eric van Gyzen (via stable@) MFC after: 3 days
|
253707 |
27-Jul-2013 |
marius |
- Set the System Identifier in the Primary Volume Descriptor to FreeBSD rather than NetBSD. - Correctly set the Expiration Time in the Primary Volume Descriptor; according to ISO 9660 8.4.26.1 unspecified date and time are denoted by the digit 0 in RBP 1 to 16 but the number 0 in RBP 17. [1] - Merge iso9660_rrip.c rev. 1.11 from NetBSD: name_len should be read as unsigned byte. [2] Note: This is according to ISO 9660 9.1.10. - Rock Ridge TF entries should use a length of 5, because after the 4 bytes of generic SUSP header there is one byte of flags. See typedef of ISO_RRIP_TF in iso9660_rrip.h. [1]
Submitted by: Thomas Schmitt [1] Obtained from: NetBSD [2] MFC after: 3 days
|
253675 |
26-Jul-2013 |
marius |
Ensure that makefs.h is included when using ufs_bswap.h so the FFS_EI macro is picked up when defined. Previously, ffs_subr.c was always built without support for opposite endianess as it doesn't include makefs.h on its own.
MFC after: 3 days
|
250605 |
13-May-2013 |
marcel |
Set st_nlink in the stat structure within the inode to 1 as well. The cd9660 file system uses that field for the link count and it was 0. This impacts pwd_mkdb(8) as it checks for st_nlink not being 0 as part of closing a race.
|
250407 |
09-May-2013 |
brooks |
Remove duplicated copies of various NetBSD compatibility shims used by makefs and use libnetbsd, contrib/mtree, and contrib/mknod instead.
Sponsored by: DARPA, AFRLo MFC after: 1 month
|
249373 |
11-Apr-2013 |
joel |
Remove contractions.
|
247052 |
20-Feb-2013 |
brooks |
Support hardlinks in manifest files by the same logic as the treewalk code.
Reviewed by: marcel Sponsored by: DARPA, AFRL
|
247043 |
20-Feb-2013 |
brooks |
Allow '.' components in manifest paths. They are always the first component of mtree -C and install -M output and are easily skipped.
Reviewed by: marcel Sponsored by: DARPA, AFRL
|
247042 |
20-Feb-2013 |
brooks |
Fix the -N option in manifest mode by using pwcache(3). This also speeds up image creation appreciably.
Reviewed by: marcel Sponsored by: DARPA, AFRL
|
247041 |
20-Feb-2013 |
brooks |
Add a -D flag that causes duplicate entries in an mtree manifest to be treated as warnings rather than errors.
Reviewed by: marcel Sponsored by: DARPA, AFRL
|
242501 |
03-Nov-2012 |
sjg |
If no contents keyword is specified, the default for files is the named file.
Approved by: marcel (mentor)
|
241015 |
27-Sep-2012 |
mdf |
Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
|
239952 |
31-Aug-2012 |
joel |
Remove trailing whitespace.
|
239574 |
22-Aug-2012 |
hrs |
Sort options.
|
239562 |
22-Aug-2012 |
hrs |
Add -p flag to create the image as a sparse file.
Submitted by: Shesha Sreenivasamurthy PR: bin/167779
|
239359 |
17-Aug-2012 |
mjg |
Remove unused member of struct indir (in_exists) from UFS and EXT2 code.
Reviewed by: mckusick Approved by: trasz (mentor) MFC after: 1 week
|
233783 |
02-Apr-2012 |
andreast |
- Write the ISO9660 descriptor after the apm partition entries. - Fill the needed pmPartStatus flags. At least the OpenBIOS implementation relies on these flags.
This commit fixes the panic seen on OS-X when inserting a FreeBSD/ppc disc. Additionally OpenBIOS recognizes the partition where the boot code is located. This lets us load a FreeBSD/ppc PowerMac kernel inside qemu.
PR: powerpc/162091 MFC after: 1 week
|
230795 |
31-Jan-2012 |
jkim |
Allow contents of multiple directories to be merged to the current image. Note this patch was submitted to NetBSD and they already adopted it.
http://mail-index.netbsd.org/source-changes/2012/01/28/msg031078.html
MFC after: 1 week
|
230529 |
25-Jan-2012 |
hrs |
Fix a SIGSEGV problem in directory entry renaming.
|
230355 |
20-Jan-2012 |
eadler |
Fix warning when compiling with gcc46: error: variable 'parentrecnum' set but not used
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
|
230354 |
20-Jan-2012 |
eadler |
Fix a variety of warnings when compiling with gcc46
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
|
230353 |
20-Jan-2012 |
eadler |
Fix warning when compiling with gcc46: error: variable 'temp' set but not used
Approved by: dim Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
|
228990 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.sbin/
|
228733 |
20-Dec-2011 |
ed |
Small cleanups to panic() prototype.
- Let panic() use _Noreturn and __printflike() instead of GCC-specific attributes. - Remove prototype from ffs_subr.c and let it include ffs_extern.h. - Forward declare struct inode to make ffs_extern.h not depend on it.
|
226482 |
17-Oct-2011 |
eadler |
- remove device keyword from makefs manpage
PR: docs/144408 Submitted by: gcooper Approved by: gjb Approved by: sahil (mentor) MFC after: 1 week
|
226169 |
09-Oct-2011 |
nwhitehorn |
Add support to makefs(8) to add UFS labels to images.
Submitted by: avg MFC after: 3 days
|
225121 |
23-Aug-2011 |
mm |
Fix buffer overflow and possible ISO image corruption in wrong handling of "." character case in makefs ISO level 1 and 2 filename conversion.
Filed as NetBSD PR #45285 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45285
Reviewed by: Christos Zoulas <christos@netbsd.org> Approved by: re (kib) MFC after: 3 days
|
224762 |
10-Aug-2011 |
marius |
Sync makefs(8) ISO 9660 support with NetBSD: o cd9960 -> cd9660 o Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h since actual user is not cd9660_eltorito.c but iso.h and cd9660_eltorito.h.
Actually, include order/place of sys/endian.h doesn't matter on netbsd since it is always included by sys/types.h but it's not true on other system. This should fix cross build breakage on freebsd introduced by rev. 1.16 of cd9660_eltorito.c. Problem reported and fix suggested on twitter. o Fix fd leaks in error cases. Found by cppcheck. o RRIP RE length should be 4, not 0 o Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates corrupted cd9660fs), iso9660_rrip.c part: - cd9660_rrip_finalize_node() should check rr_real_parent in node->parent, not in node itself in RRIP_PL case - cd9660_rrip_initialize_node() should update only node passed as arg so handle RRIP_PL in DOTDOT case
Fixes malformed dotdot entries in deep (more than 8 level) directories moved into .rr_moved dir.
Should be pulled up to netbsd-5. (no official ISO has such deep dirs, but cobalt restorecd is affected)
Reviewed by: mm Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days
|
224690 |
07-Aug-2011 |
mm |
Fix NetBSD PR bin/44114: makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image.
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114
Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id
This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution images created with makefs have not been 100% valid ISO9660 files.
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217
Reviewed by: kientzle Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days
|
223306 |
19-Jun-2011 |
marcel |
Add support for using mtree(5) manifest files to define the image to be created. The support is based on mtree version 2.0, as used in libarchive, but adds new features on top of it.
The current implementation is fully functional, but is envisioned to grow at least the following additional features over time: o Add support for the /include special command so that manifest files can be constructed using includable fragments. o Add support specifying a search path to locate content files. o Content file filters: commands that provide file contents on stdout.
The manifest file eliminates the need to first construct a tree as root in order to create an image and allows images (releases) to be created directly from object trees and/or source trees.
Reviewed by: deo Sponsored by: Juniper Networks, Inc
|
223169 |
16-Jun-2011 |
mckusick |
Drop the include of <ufs/ffs/ffs_extern.h> from usr.sbin/makefs/ffs/ffs_bswap.c and usr.sbin/makefs/ffs/ffs_subr.c as they have no need of anything in that file. No other programs or libraries include <ufs/ffs/ffs_extern.h> (nor should they as it is totally in-kernel interfaces). For added protection I enclosed the entire contents of <ufs/ffs/ffs_extern.h> in ifdef _KERNEL.
Feedback from: Bruce Evans and Tai-hwa Liang
|
223052 |
13-Jun-2011 |
dim |
Use alternative, less messy solution to avoid breakage after r223020: put the snapdata structure between #ifdef _KERNEL guards.
Suggested by: kib
|
223029 |
13-Jun-2011 |
dim |
Apparently makefs needs a few more system headers to compile during buildworld.
|
223025 |
12-Jun-2011 |
dim |
Unbreak usr.sbin/makefs after r223020.
Pointy hat to: mckusick
|
222191 |
22-May-2011 |
nwhitehorn |
Add analogs to the -chrp-boot and -prep-boot options to mkisofs.
|
221536 |
06-May-2011 |
nwhitehorn |
Simplify this code somewhat by only writing a 512-byte-sector APM map. All firmwares can read it, we need to write one anyway for old OF versions, and if a 512-byte one is present, OS X ignores the 2048-byte one in favor of it.
|
221470 |
05-May-2011 |
nwhitehorn |
Fix boot on old machines (e.g. blue and white G3s) by synthesizing a 512-byte sector map instead unused space in the first 2048-byte sector.
|
221387 |
03-May-2011 |
nwhitehorn |
Add support for synthesizing an APM partition map to map Mac PowerPC bootstrap partitions from the ISO9660 boot catalog. This preserves OS X's ability to mount the CD, while allowing us a way to provide HFS-ified bootstrap code for Open Firmware.
|
219956 |
24-Mar-2011 |
bapt |
Really fix the confusion, sorry for noise
Submitted by: avg Approved by: cognet
|
219954 |
24-Mar-2011 |
bapt |
Fix confusion between a-characters and d-characters
Submitted by: avg Approved by: cognet
|
217769 |
24-Jan-2011 |
mckusick |
The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilities include sys/time.h instead of time.h. This include is incorrect as per the manpages for the APIs and the POSIX definitions. This commit replaces sys/time.h where necessary with time.h.
The commit also includes some minor style(9) header fixup in newfs.
This commit is part of a larger effort by Garrett Cooper started in //depot/user/gcooper/posix-conformance-work/ -- to make FreeBSD more POSIX compliant.
Submitted by: Garrett Cooper yanegomi at gmail dot com
|
214921 |
07-Nov-2010 |
cognet |
Sync with the latest version from NetBSD. It notably addds ISO9660 support.
Submitted by: bapt
|
210933 |
06-Aug-2010 |
joel |
Fix typos and spelling mistakes.
|
207141 |
24-Apr-2010 |
jeff |
- Merge soft-updates journaling from projects/suj/head into head. This brings in support for an optional intent log which eliminates the need for background fsck on unclean shutdown.
Sponsored by: iXsystems, Yahoo!, and Juniper. With help from: McKusick and Peter Holm
|
203972 |
16-Feb-2010 |
imp |
The NetBSD Foundation has given permission to remove clause 3 and 4 from their liceense.
Obtained from: NetBSD
|
203059 |
27-Jan-2010 |
jmallett |
Correct copy-paste typo from previous option description.
|
196696 |
31-Aug-2009 |
jhb |
Delete some empty mergeinfo.
|
189090 |
26-Feb-2009 |
ed |
Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.
Submitted by: Pawel Worach <pawel.worach@gmail.com>
|
186342 |
19-Dec-2008 |
sam |
fix pathnames to work w/ buildworld
|
186341 |
19-Dec-2008 |
sam |
fix 64-bit build
|
186335 |
19-Dec-2008 |
sam |
import netbsd makefs tool
|
186334 |
19-Dec-2008 |
sam |
add properties and FreeBSD id's
|
186272 |
18-Dec-2008 |
sam |
turn warnx into a debug msg
|
186271 |
18-Dec-2008 |
sam |
enable support for st_flags and st_gen
|
186270 |
18-Dec-2008 |
sam |
another nbtool turd
|
186269 |
18-Dec-2008 |
sam |
fix stuff i broke
|
186265 |
18-Dec-2008 |
sam |
If the filesystem size rounded up to a multiple of the block size is larger than what a user specified then round down to get something that works but wastes a little space.
This happens reliably for me when building filesystems for CF parts >1G; not sure why noone else is complaining.
|
186264 |
18-Dec-2008 |
sam |
unbreak cg_chkmagic_swap
|
186261 |
18-Dec-2008 |
sam |
Apply the big hammer: o remove all of compat except for pwcache and strstuftoll; these might end up in libutil or similar so keep them in the subdir o mv getid.c up to the top level; this looks like something that'll be makefs-specific o eliminate private versions of .h files in sys; use system files instead o eliminate private ffs_tables.c; use the system version directly (might want to adopt const'ification at some point but that's the only diff I can see) o mv remaining code from sys to ffs and strip out unused bits; this now becomes part of makefs o add compat defs and shims to makefs.h o strip all vestiges of nbtool_config.h, compat_defs.h, etc. o fixup includes after file shuffling o rename system #defines that do implicit byte swapping to have an _swap suffix; e.g. DIRSIZ -> DIRSIZ_SWAP, cg_inosused -> cg_inosused_swap; if we ever add endian-agnostic support to the kernel these can go back to their original names o strip some netbsd'isms that aren't worth shim'ing (e.g. _DIAGASSERT)
Code compiles w/o complaints but is untested.
|
186259 |
17-Dec-2008 |
sam |
gone
|
186258 |
17-Dec-2008 |
sam |
fparseln is in libutil
|
186257 |
17-Dec-2008 |
sam |
getmode+setmode are in libc, remove
|
186256 |
17-Dec-2008 |
sam |
First step toward proper mtree integration: o use mtree code directly from ../mtree; s/spec(fp)/mtree_readspec(fp)/ (assume this will eventually go in usr.sbin) o nuke st_rdev use; there's no reason to create filesystems with device nodes o shim missing compat bits for inotype and nodetoino o remove now unneeded compat/mtree bits, pack_dev.?, and stat_flags.? o temporarily move getid.c code up to compat to keep this building
|
186251 |
17-Dec-2008 |
sam |
split stanzas in preparation for better integration
|
185262 |
24-Nov-2008 |
imp |
This directory is now empty
|
185260 |
24-Nov-2008 |
imp |
This isn't needed...
|
185259 |
24-Nov-2008 |
imp |
Remove the dump_node and vispath routines from compat/mtree/spec.c. They aren't needed, and were the only users of the compat/vis.[ch] files. As such, remove them from the Makefile.
|
185222 |
23-Nov-2008 |
sam |
prepare makefs for import to base
|