aboutsummaryrefslogtreecommitdiff
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Switch over to gnu99 compilation on default for userland.Roman Divacky2009-03-144-6/+8
| | | | | | | | | | | Tested by: make universe Tested by: ports exp build (done by pav) Reviewed by: ru Reviewed by: silence on arch Approved by: ed (mentor) Notes: svn path=/head/; revision=189801
* Correct the sense of the "use32" terenary operator so that it usesJohn Baldwin2009-01-161-5/+1
| | | | | | | | | | | 'lib32' for 32-bit binaries on amd64 and 'lib' for 64-bit binaries. Remove an #ifdef __i386__ that defined use32 to the wrong value on i386 to workaround the bug in the terenary operator. MFC after: 1 month Notes: svn path=/head/; revision=187347
* Include param.h instead of types.h before mount.h so that the nestedRobert Watson2008-12-291-0/+1
| | | | | | | | | include of param.h can be removed from audit.h. MFC after: 3 days Notes: svn path=/head/; revision=186568
* Including mount.h requires including param.h.Robert Watson2008-12-271-0/+1
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=186515
* IFp4: Don't rely on disk IDs and always use vdev guids, which means always lookPawel Jakub Dawidek2008-11-221-5/+1
| | | | | | | | up for components by reading metadata. This might be slower when there are big number of disks in the system, but is definiately more reliable. Notes: svn path=/head/; revision=185174
* Fix a warning on amd64 caused by using int for request argument instead ofPawel Jakub Dawidek2008-11-182-2/+2
| | | | | | | | | | | unsigned long: WARNING pid 12888 (zfs/zpool): ioctl sign-extension ioctl ffffffffcc285aXX Reported by: kris Notes: svn path=/head/; revision=185039
* Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.Pawel Jakub Dawidek2008-11-1756-4787/+15477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bring huge amount of changes, I'll enumerate only user-visible changes: - Delegated Administration Allows regular users to perform ZFS operations, like file system creation, snapshot creation, etc. - L2ARC Level 2 cache for ZFS - allows to use additional disks for cache. Huge performance improvements mostly for random read of mostly static content. - slog Allow to use additional disks for ZFS Intent Log to speed up operations like fsync(2). - vfs.zfs.super_owner Allows regular users to perform privileged operations on files stored on ZFS file systems owned by him. Very careful with this one. - chflags(2) Not all the flags are supported. This still needs work. - ZFSBoot Support to boot off of ZFS pool. Not finished, AFAIK. Submitted by: dfr - Snapshot properties - New failure modes Before if write requested failed, system paniced. Now one can select from one of three failure modes: - panic - panic on write error - wait - wait for disk to reappear - continue - serve read requests if possible, block write requests - Refquota, refreservation properties Just quota and reservation properties, but don't count space consumed by children file systems, clones and snapshots. - Sparse volumes ZVOLs that don't reserve space in the pool. - External attributes Compatible with extattr(2). - NFSv4-ACLs Not sure about the status, might not be complete yet. Submitted by: trasz - Creation-time properties - Regression tests for zpool(8) command. Obtained from: OpenSolaris Notes: svn path=/head/; revision=185029
* Merge latest DTrace changes from Perforce.Craig Rodrigues2008-11-059-27/+66
| | | | | | | Approved by: jb Notes: svn path=/head/; revision=184696
* Mips doesn't have a long double that's different in size from double.Warner Losh2008-09-181-1/+1
| | | | Notes: svn path=/head/; revision=183153
* Add a missing file change from the VOP_GETATTR() argument axing.Attilio Rao2008-08-281-1/+1
| | | | Notes: svn path=/head/; revision=182383
* Don't need to include vmem.h anymore.John Birrell2008-05-231-1/+0
| | | | Notes: svn path=/head/; revision=179265
* Add the dtrace client app to the build.John Birrell2008-05-222-1/+39
| | | | Notes: svn path=/head/; revision=179221
* Add the DTrace build tools.John Birrell2008-05-225-1/+155
| | | | Notes: svn path=/head/; revision=179200
* Oops, these files belonged under src/sys, not src. Sorry.John Birrell2008-05-2218-25785/+0
| | | | Notes: svn path=/head/; revision=179199
* This commit was generated by cvs2svn to compensate for changes in r179191,John Birrell2008-05-2218-0/+25785
| | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=179192
* Add the DTrace libraries and D library scripts.John Birrell2008-05-2211-1/+863
| | | | Notes: svn path=/head/; revision=179189
* Add Solaris compatibility definitions for things we don't really want inJohn Birrell2008-05-212-0/+83
| | | | | | | FreeBSD headers. Notes: svn path=/head/; revision=179163
* * Handle the different ioctl design.John Birrell2008-04-263-14/+524
| | | | | | | * Add a couple of FreeBSD action extensions. Notes: svn path=/head/; revision=178576
* Make this file compile cleanly.John Birrell2008-04-261-1/+3
| | | | Notes: svn path=/head/; revision=178575
* Leave out some header files.John Birrell2008-04-262-0/+10
| | | | Notes: svn path=/head/; revision=178574
* * Handle building on FreeBSD for i386 and amd64.John Birrell2008-04-261-27/+194
| | | | | | | | * Add stubs for the other FreeBSD arches. * Make the file compile cleanly. Notes: svn path=/head/; revision=178573
* * Make this file compile cleanly.John Birrell2008-04-261-10/+27
| | | | | | | * Add FreeBSD constructor/destructor definitions. Notes: svn path=/head/; revision=178572
* * Add FreeBSD action extensions.John Birrell2008-04-261-6/+267
| | | | | | | | | | * Get the kernel module file name rather than hard-coding it like on Solaris. * Use FreeBSD's process library API. * Handle FreeBSD's different lock types. * Get the list of loaded providers via a syscall. Notes: svn path=/head/; revision=178570
* * Handle the different ioctl design.John Birrell2008-04-261-3/+14
| | | | | | | * Make this file compile cleanly. Notes: svn path=/head/; revision=178569
* There is a lot of commented out code here which applies to future workJohn Birrell2008-04-261-2/+112
| | | | | | | | | | for userland tracing. For now we need the basic functions to be in place so that DTrace can be used for kernel tracing. Notes: svn path=/head/; revision=178568
* Leave out a header file.John Birrell2008-04-261-0/+2
| | | | Notes: svn path=/head/; revision=178567
* Merge FreeBSD include file changes with some code that should have comeJohn Birrell2008-04-261-11/+39
| | | | | | | in on the vendor branch. Notes: svn path=/head/; revision=178566
* * Use FreeBSD's process library instead of the Solaris one.John Birrell2008-04-261-1/+122
| | | | | | | | | | * There are a few placeholders in here for which there isn't libproc support code yet. This is relevent to userland tracing. This set of commits is designed to get kernel tracing up and running, with the userland stuff to follow later. Notes: svn path=/head/; revision=178565
* Leave out the hook that Solaris has into it's rtld.John Birrell2008-04-261-0/+2
| | | | Notes: svn path=/head/; revision=178564
* * Add a couple of action definitions for FreeBSD extensions.John Birrell2008-04-261-0/+32
| | | | | | | | | * Handle the different ioctl design. * Add support for the get and set error location. * Add support for freopen(). Notes: svn path=/head/; revision=178563
* * Handle the different ioctl design.John Birrell2008-04-261-1/+17
| | | | | | | * Make the file compile cleanly. Notes: svn path=/head/; revision=178562
* There are many places in libdtrace where errno can be set. When anJohn Birrell2008-04-261-0/+18
| | | | | | | | | | | error is returned all the way back to the dtrace app, it's hard to figure out where that error came from. Add a couple of functions to get and set the error location which can be optionally compiled into the library. Notes: svn path=/head/; revision=178561
* Add some error definitions for FreeBSD action extensions.John Birrell2008-04-261-1/+5
| | | | Notes: svn path=/head/; revision=178560
* * Make this file compile cleanly.John Birrell2008-04-261-7/+98
| | | | | | | | * Use FreeBSD's kld syscalls to get kernel module information instead of using an object file system like Solaris uses. Notes: svn path=/head/; revision=178559
* * Handle the different ioctl design.John Birrell2008-04-261-4/+21
| | | | | | | | * Use FreeBSD's process library API. * Make the file compile cleanly. Notes: svn path=/head/; revision=178558
* Just leave out a few includes to compile this on FreeBSD.John Birrell2008-04-261-0/+4
| | | | Notes: svn path=/head/; revision=178557
* * Get the maximum number of CPUs via a sysctl.John Birrell2008-04-261-2/+63
| | | | | | | | | | | | | * Handle the different ioctl design. * Support the freopen() changes. * Use functions in FreeBSD's process library rather than the CDDL library that Solaris has which sits on top of their process file system and is therefore unsuitable for use on FreeBSD. The libproc API for FreeBSD is deliberately different to that on Solaris because Sun wouldn't release the libproc.h header under a BSD license. Notes: svn path=/head/; revision=178556
* * Define YY_INPUT for flex since input() can't be re-defined.John Birrell2008-04-261-1/+25
| | | | | | | | | | | * On FreeBSD define both LITTLE_ENDIAN and BIG_ENDIAN and then set the BYTE_ORDER to the one we are using. On Solaris they define one or the other but not both. For us to keep using FreeBSD header files, we need to use endian definitions the same way we do in pure BSD code. Notes: svn path=/head/; revision=178555
* Make this compile cleanly.John Birrell2008-04-261-3/+2
| | | | Notes: svn path=/head/; revision=178554
* Handle the different level of indirection between ioctl on SYSV vs BSD.John Birrell2008-04-261-2/+7
| | | | Notes: svn path=/head/; revision=178553
* freopen() on FreeBSD behaves differently to the Solaris one.John Birrell2008-04-261-1/+92
| | | | Notes: svn path=/head/; revision=178552
* * Use a portable POSIX timed wait.John Birrell2008-04-261-1/+22
| | | | | | | * Handle the different ioctl format. Notes: svn path=/head/; revision=178551
* * Fix a function prototype.John Birrell2008-04-261-1/+10
| | | | | | | | * Allow for the different level of indirection between SYSV's ioctl and BSD's. * Map a couple of sysconf definitions to one that FreeBSD has. Notes: svn path=/head/; revision=178550
* Simplify for FreeBSD for now, bypassing the multibyte char variablesJohn Birrell2008-04-261-0/+13
| | | | | | | that Solaris has. We may need to revisit this issue later. Notes: svn path=/head/; revision=178549
* Solaris has code which makes zlib optional, so they have to jump throughJohn Birrell2008-04-261-7/+28
| | | | | | | | some hoops to get the compression functions. On FreeBSD have libz and can just link against it. Notes: svn path=/head/; revision=178548
* 'echo' behaviour differs between SYSV and BSD.John Birrell2008-04-262-4/+8
| | | | Notes: svn path=/head/; revision=178547
* A lot of changes to make this code compile cleanly on FreeBSD.John Birrell2008-04-2623-224/+342
| | | | Notes: svn path=/head/; revision=178546
* Use FreeBSD's libdwarf which is BSD licensed instead of the GPL'd one thatJohn Birrell2008-04-261-137/+105
| | | | | | | is used in Solaris. Notes: svn path=/head/; revision=178545
* We need to be consistent with prototype definitions. It isn't OK toJohn Birrell2008-04-261-8/+55
| | | | | | | | | | use 'const' and just override it whenever we feel like it. If we use it at all, then we need to do it properly. Add a couple of functions that were useful in getting this code ported. Notes: svn path=/head/; revision=178544
* Make this file compile cleanly.John Birrell2008-04-261-25/+25
| | | | Notes: svn path=/head/; revision=178542