aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* zfs: world changes after 89f729dcc mergeMartin Matuska2025-12-071-7/+3
| | | | | Remove, unbind and obsolete libuutil and libtpool Update zfs_configh and zfs_gitrev.h
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* zfs: merge openzfs/zfs@229b9f4edMartin Matuska2024-02-081-0/+1
| | | | | | | | | | Notable upstream pull request merges: #15769 082338875 Add 'zpool status -e' flag to see unhealthy vdevs #15804 a0d3fe72b libzdb: Initial breakout of libzdb #15847 229b9f4ed LUA: Backport CVE-2020-24370's patch Obtained from: OpenZFS OpenZFS commit: 229b9f4ed05e6d14fb4d73fa04a71e99b01bb534
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* cddl/*: add a WITH(OUT)_DTRACE optionBrooks Davis2022-07-061-28/+21
| | | | | | | | | | | | | | | | | | Add an option to enable/disable DTrace without disabling ZFS. New architectures such as CHERI may support ZFS before they support DTrace and the old model of WITHOUT_CDDL disabling both wasn't helpful. For compatiblity, the CDDL option remains and WITHOUT_CDDL implies WITHOUT_DTRACE. WITHOUT_DTRACE also implies WITHOUT_CTF. As part of this change, largely convert cddl/*/Makefile to using the more compact SUBDIR.${MK_<FOO>}+= form rather than using intermediate variables. Reviewed by: markj Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D35718
* cddl: fix missing ZFS library dependenciesGreg V2021-11-151-1/+3
| | | | | | | | | | | In 9fae47666 zfsd got a libspl dependency to avoid undefined references. However that workaround did not help external consumers of libzfs_core. Fix all missing dependencies lld 13 and the rtld complain about. Reviewed by: freqlabs, markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D32521
* openzfs: attach pam_zfs_key to buildGreg V2021-03-021-1/+6
| | | | | | | | | | | | | | | This PAM module allows unlocking encrypted user home datasets when logging in (and changing passphrase when changing the account password), see https://github.com/openzfs/zfs/pull/9903 Also supposed to unload the key when the last session for the user is done, but there are EBUSY issues: https://github.com/openzfs/zfs/issues/11222#issuecomment-731897858 Submitted by: Greg V <greg_unrelenting.technology> Reviewed by: mm MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28018
* build: remove LIBPTHREAD/LIBTHR build optionsKyle Evans2021-01-221-2/+0
| | | | | | | | | | | | | | | | | | WITHOUT_LIBTHR has been broken for a little over five years now, since the xz 5.2.0 update introduced a hard liblzma dependency on libthr, and building a useful system without threading support is becoming increasingly more difficult. Additionally, in the five plus years that it's been broken more reverse dependencies have cropped up in libzstd, libsqlite3, and libcrypto (among others) that make it more and more difficult to reconcile the effort needed to fix these options. Remove the broken options. PR: 252760 Reviewed by: brooks, emaste, kib Differential Revision: https://reviews.freebsd.org/D28263
* loader: zfs should support bootonce an nextbootToomas Soome2020-09-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootonce feature is temporary, one time boot, activated by "bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag. By default, the bootonce setting is reset on attempt to boot and the next boot will use previously active BE. By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will be set permanently active. bootonce dataset name is recorded in boot pool labels, bootenv area. in case of nextboot, the nextboot_enable boolean variable is recorded in freebsd:nvstore nvlist, also stored in boot pool label bootenv area. On boot, the loader will process /boot/nextboot.conf if nextboot_enable is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf processing on next boot. bootonce and nextboot features are usable in both UEFI and BIOS boot. To use bootonce/nextboot features, the boot loader needs to be updated on disk; if loader.efi is stored on ESP, then ESP needs to be updated and for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated (gpart or other tools). At this time, only lua loader is updated. Sponsored by: Netflix, Klara Inc. Differential Revision: https://reviews.freebsd.org/D25512 Notes: svn path=/head/; revision=365938
* Merge OpenZFS support in to HEAD.Matt Macy2020-08-251-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary benefit is maintaining a completely shared code base with the community allowing FreeBSD to receive new features sooner and with less effort. I would advise against doing 'zpool upgrade' or creating indispensable pools using new features until this change has had a month+ to soak. Work on merging FreeBSD support in to what was at the time "ZFS on Linux" began in August 2018. I first publicly proposed transitioning FreeBSD to (new) OpenZFS on December 18th, 2018. FreeBSD support in OpenZFS was finally completed in December 2019. A CFT for downstreaming OpenZFS support in to FreeBSD was first issued on July 8th. All issues that were reported have been addressed or, for a couple of less critical matters there are pull requests in progress with OpenZFS. iXsystems has tested and dogfooded extensively internally. The TrueNAS 12 release is based on OpenZFS with some additional features that have not yet made it upstream. Improvements include: project quotas, encrypted datasets, allocation classes, vectorized raidz, vectorized checksums, various command line improvements, zstd compression. Thanks to those who have helped along the way: Ryan Moeller, Allan Jude, Zack Welch, and many others. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D25872 Notes: svn path=/head/; revision=364746
* - Cleanups related to sparc64 removal.Yoshihiro Takahashi2020-07-281-7/+2
| | | | | | | | | | - Remove remains of sparc64 files. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D25831 Notes: svn path=/head/; revision=363644
* libbe(3): Move build goop back out of cddl/Kyle Evans2018-08-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | | Some background: in the GSoC project, libbe/Makefile lived in lib/libbe. I created projects/bectl branch, maintained the above for all of five minutes before I misread Makefile.inc1 and decided that it couldn't possibly build outside of cddl/, so I kicked the Makefile out into the cddl/ build and all was good. The misreading was of the bit where .WAIT is added to SUBDIR after lib, libexec but prior to building bin and cddl *only during the install targets*, which is the critical part. Fast forward- buildworld was still broken in my branch unbeknownst to me because I didn't nuke my OBJDIR. Combing through Makefile.inc1 eventually revealed the necessary magic to make sure that libbe's dependencies are specified well enough, and it becomes clear what needs done to make a non-cddl/ build work. This is an interesting prospect, because the build split is kind of annoying to work with. IGNORE_PRAGMA is added to avoid dropping WARNS by one more. This was previously pulled in via cddl/Makefile.inc. Notes: svn path=/head/; revision=337995
* libbe(3): Add to cddl build, adjust src.libnames.mk as neededKyle Evans2018-07-241-0/+3
| | | | Notes: svn path=/projects/bectl/; revision=336673
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-4/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* Add initial DTrace support for RISC-V.Ruslan Bukin2016-05-241-1/+1
| | | | | | | | Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Notes: svn path=/head/; revision=300618
* We don't support libdtrace for RISC-V yet.Ruslan Bukin2016-01-251-1/+1
| | | | Notes: svn path=/head/; revision=294713
* Sparc64 is the odd-man out, so form the if that way rather thanWarner Losh2015-08-231-3/+1
| | | | | | | listing everybody else. Notes: svn path=/head/; revision=287085
* First cut of DTrace for AArch64.Ruslan Bukin2015-07-011-3/+3
| | | | | | | | | Reviewed by: andrew, emaste Sponsored by: ARM Limited Differential Revision: https://reviews.freebsd.org/D2738 Notes: svn path=/head/; revision=285009
* Add dependencies for libzfs_core and libzpool I missed on my first pass on thisEnji Cooper2015-05-201-0/+2
| | | | | | | | | | Makefile MFC with: r283144 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=283145
* Articulate dependencies for cddl/lib/libdtrace and cddl/lib/libzfsEnji Cooper2015-05-201-0/+5
| | | | | | | | | | Parallelize the build in this subdirectory MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=283144
* Initial version of DTrace on ARM32.George V. Neville-Neil2015-02-101-1/+2
| | | | | | | | Submitted by: Howard Su based on work by Oleksandr Tymoshenko Reviewed by: ian, andrew, rpaulo, markj Notes: svn path=/head/; revision=278529
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Add placeholder Kyuafiles for various top-level hierarchies.Julio Merino2014-04-211-1/+6
| | | | | | | | | | | | | | | This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafiles for them. the relevant hierarchies are: cddl, etc, games, gnu and secure. The reason for this is to simplify the addition of new test programs for utilities or libraries under any of these directories. Doing so on a case by case basis is unnecessary and is quite an obscure process. Notes: svn path=/head/; revision=264741
* WiP merge of libzfs_core (MFV r238590, r238592)Martin Matuska2013-03-051-0/+2
| | | | | | | not yet working, ioctl handling needs to be changed Notes: svn path=/projects/libzfs_core/; revision=247831
* Implement DTrace for PowerPC. This includes both 32-bit and 64-bit.Justin Hibbits2012-11-071-1/+2
| | | | | | | | | | | | | | There is one known issue: Some probes will display an error message along the lines of: "Invalid address (0)" I tested this with both a simple dtrace probe and dtruss on a few different binaries on 32-bit. I only compiled 64-bit, did not run it, but I don't expect problems without the modules loaded. Volunteers are welcome. MFC after: 1 month Notes: svn path=/head/; revision=242723
* Enable build of DTrace-related userland parts for MIPSOleksandr Tymoshenko2012-03-241-1/+1
| | | | Notes: svn path=/head/; revision=233415
* Use double quotes when checking the value of MACHINE_ARCH.Rui Paulo2010-08-211-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=211550
* The DTrace instrumentation object is going to be i386/amd64 only.Rui Paulo2010-08-211-1/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=211547
* libdtrace, dtrace(1) and lockstat(1) are for i386 and amd64 only rightRui Paulo2010-07-311-1/+5
| | | | | | | | | now. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210693
* Add the DTrace libraries and D library scripts.John Birrell2008-05-221-1/+4
| | | | Notes: svn path=/head/; revision=179189
* Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longerRuslan Ermilov2008-03-291-1/+1
| | | | | | | build libkse. This should fix WITHOUT_LIBTHR builds as a side effect. Notes: svn path=/head/; revision=177714
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalDavid E. O'Brien2007-10-091-1/+1
| | | | | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith) Notes: svn path=/head/; revision=172500
* Repo copy libpthreads to libkse.David E. O'Brien2007-10-091-1/+1
| | | | | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) Notes: svn path=/head/; revision=172491
* Don't build bits that depend on the pthreads support if aRuslan Ermilov2007-10-011-0/+2
| | | | | | | | | system was configured without such support. Approved by: re (kensmith) Notes: svn path=/head/; revision=172404
* - Reduce number of atomic operations needed to be implemented in asm byPawel Jakub Dawidek2007-06-081-2/+0
| | | | | | | | | | implementing some of them using existing ones. - Allow to compile ZFS on all archs and use atomic operations surrounded by global mutex on archs we don't have or can't have all atomic operations needed by ZFS. Notes: svn path=/head/; revision=170431
* Apply a set of style.Makefile(5) changes to src/cddl/ makefiles.Ruslan Ermilov2007-04-161-9/+10
| | | | | | | | | | | | | There are some insignificant non-style changes as well. Not fixed: makefiles use ${LIBTHR} that doesn't exist, thus breaking "make checkdpadd" and not tracking dependencies properly. Approved by: pjd Notes: svn path=/head/; revision=168792
* Build ZFS on amd64 and pc98.Dag-Erling Smørgrav2007-04-071-3/+1
| | | | | | | Approved by: pjd@ Notes: svn path=/head/; revision=168475
* Please welcome ZFS - The last word in file systems.Pawel Jakub Dawidek2007-04-061-0/+20
ZFS file system was ported from OpenSolaris operating system. The code in under CDDL license. I'd like to thank all SUN developers that created this great piece of software. Supported by: Wheel LTD (http://www.wheel.pl/) Supported by: The FreeBSD Foundation (http://www.freebsdfoundation.org/) Supported by: Sentex (http://www.sentex.net/) Notes: svn path=/head/; revision=168404