* Require a version 5 filesystem for dedup operation. Upgrading can be done in-place. All this does is make the layer2 bytes_free field a signed value instead of unsigned, allowing it to go negative. This allows dedup to use the field to account for multiple references to the same block of data, causing the field to (likely) go negative.
* Implements all the logic required to dedup a HAMMER filesystem. * There is one remaining issue and that is the reblocker's propensity to undo de-dup's hard work in certain cases. * Code bounty for hammer_dedup Submitted-by: Ilya Dryomov <email@example.com>
* flushbufqueues() was holding bufqspin through a buffer cache callback, causing a kernel panic if the callback winds up blocking. This only effected UFS not HAMMER). * Release the spinlock a little earlier so it isn't held around the callback. * Make a minor semantics change to bio_track_wait() to deal with potential compiler optimizations messing up the cmpxchg loop. Reported-by: "firstname.lastname@example.org" <email@example.com>
* Do not call sync() unconditionally when issuing the /sbin/umount command. Let the kernel take care of any syncing. * This may allow umount -f to operate better in situations where a mount might be stuck (such as a NFS mount), and also removes delays associated with scanning large numbers of vnodes on x86_64.
Our default remains 200112 for now.
With the exception of /boot for the HAMMER install and / for the UFS install, allow the configuration of encryption of partitions via checkboxes in the partition creation stage.
This generally sets WARNS to 6 in libexec/ unless specified otherwise in the individual Makefiles. Just like we do it in bin/, games/, sbin/, usr.bin/ and usr.sbin/ already. Also fix some warnings that crept up and clean up some Makefiles.
These functions have been added to the latest issue (7) of the OpenGroup specifications. Since our default still is POSIX.1-2001, make them visible if either _POSIX_C_SOURCE >= 200809 is defined or if _POSIX_SOURCE is not defined (which was what we had previously). The latter condition is left in for backwards compatibility and can be removed once we switch to 200809. Also fix some consumers of scandir(3) which we have in base. This fixes the build of devel/libcompizconfig. I've checked this change with 22 out of 114 packages that use scandir(), and aside from some warnings, there were no issues. Reported-by: alexh Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1896> Based-on: FreeBSD
This can be useful if you're installing to a mounted partition (e.g., from the installer). While here, clean up a bit and add a license.