summaryrefslogtreecommitdiffstats
path: root/cddl
Commit message (Collapse)AuthorAgeFilesLines
* Merge illumos revision 13594:mm2012-02-071-20/+22
| | | | | | | | | | uninitialized variables in zfs(8) may make snapshots undestroyable [1] References: https://www.illumos.org/issues/2067 [1] Obtained from: illumos (issue #2067) MFC after: 3 days
* Set SVN text/plain property for some shell scripts thatpfg2012-01-281-1/+1
| | | | | | | | | | | happen to have a .exe extension. While here fix the shebang of a shell script that was looking for /bin/bash. Reviewed by: gnn Approved by: jhb (mentor) MFC after: 2 weeks
* add KM_NODEBUG needed by ARC buffer core dump exclusion changekmacy2012-01-271-0/+1
|
* Merge illumos revisions 13572, 13573, 13574:mm2012-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Rev. 13572: disk sync write perf regression when slog is used post oi_148 [1] Rev. 13573: crash during reguid causes stale config [2] allow and unallow missing from zpool history since removal of pyzfs [5] Rev. 13574: leaking a vdev when removing an l2cache device [3] memory leak when adding a file-based l2arc device [4] leak in ZFS from metaslab_group_create and zfs_ereport_checksum [6] References: https://www.illumos.org/issues/1909 [1] https://www.illumos.org/issues/1949 [2] https://www.illumos.org/issues/1951 [3] https://www.illumos.org/issues/1952 [4] https://www.illumos.org/issues/1953 [5] https://www.illumos.org/issues/1954 [6] Obtained from: illumos (issues #1909, #1949, #1951, #1952, #1953, #1954) MFC after: 2 weeks
* Merge illumos revisions 13540, 13562:mm2012-01-221-6/+6
| | | | | | | | | | | | | | | illumos rev 13540 [1]: Removal of pyzfs broke delegation for volumes illumos rev 13562 [2]: zfs allow arguments not parsed correctly after pyzfs removal References: https://www.illumos.org/issues/1726 [1] https://www.illumos.org/issues/1977 [2] Obtained from: illumos (issues #1726, #1977) MFC after: 1 week
* Dramatically optimize listing snapshots when user requests only snapshotpjd2012-01-218-17/+84
| | | | | | | | | | | | | | | | | | | | | | | | | names and wants to sort them by name, ie. when executes: # zfs list -t snapshot -o name -s name Because only name is needed we don't have to read all snapshot properties. Below you can find how long does it take to list 34509 snapshots from a single disk pool before and after this change with cold and warm cache: before: # time zfs list -t snapshot -o name -s name > /dev/null cold cache: 525s warm cache: 218s after: # time zfs list -t snapshot -o name -s name > /dev/null cold cache: 1.7s warm cache: 1.1s MFC after: 1 week
* Add one more copyright line accidentially removed in r228103mm2012-01-201-0/+1
| | | | MFC after: 3 days
* Add accidentially removed copyright lines in r228103mm2012-01-202-0/+2
| | | | | Reported by: pjd MFC after: 3 days
* Add missing file permission to open(O_CREAT) call. This doesn't really matterpjd2012-01-041-1/+1
| | | | | here, as we open /dev/null for test purposes, but it is useful for consistency and further grepping for such bugs.
* In cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, fix some obtusedim2011-12-161-1/+4
| | | | | | snprintf tricks. MFC after: 1 week
* In cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c, a size_t is passeddim2011-12-161-1/+1
| | | | | | to fprintf as a field width. It should be an int instead, so cast it. MFC after: 1 week
* In cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c, somedim2011-12-161-2/+4
| | | | | | | | uint64_t values are snprintf'd using %llx. On amd64, uint64_t is typedef'd as unsigned long, so cast the values to u_longlong_t, as is done similarly in the rest of the file. MFC after: 1 week
* In cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c, somedim2011-12-161-3/+4
| | | | | | | | uint64_t values are snprintf'd using %llx. On amd64, uint64_t is typedef'd as unsigned long, so cast the values to u_longlong_t, as is done similarly in the rest of the file. MFC after: 1 week
* In cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c, thedim2011-12-151-0/+1
| | | | | | | | | | dt_popc() function assumes that either _ILP32 or _LP64 is defined, otherwise it has no suitable implementation. However, the _ILP32 and _LP64 macros come from isa_defs.h, which is not included in this file. Add the include now, to get the macros defined. MFC after: 1 week
* In cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c, use thedim2011-12-151-1/+1
| | | | | | correct printf format for a key_t (aka long). MFC after: 1 week
* In cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c, use thedim2011-12-151-1/+1
| | | | | | correct printf format for an unsigned long. MFC after: 1 week
* Cast away a clang alignment warning in drti.c's fixsymbol() function.dim2011-12-151-1/+1
| | | | | | | This code only runs on i386 and amd64, so there should be no problems if buf + sec->dofs_offset is not aligned (which is unlikely anyway). MFC after: 1 week
* Some mdoc(7) style and typo fixes to zfs(8).mm2011-12-081-36/+39
| | | | | Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> MFC after: 3 days
* Remove unnecesary "Ns" macros and add missing command example to zpool(8).mm2011-12-022-59/+67
| | | | | Reported by: Nobuyuki Koganemaru <kogane@FreeBSD.org> MFC after: 3 days
* Merge new ZFS features from illumos:mm2011-11-2815-1256/+1722
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1644 add ZFS "clones" property https://www.illumos.org/issues/1644 1645 add ZFS "written" and "written@..." properties https://www.illumos.org/issues/1645 1646 "zfs send" should estimate size of stream https://www.illumos.org/issues/1646 1647 "zfs destroy" should determine space reclaimed by destroying multiple snapshots https://www.illumos.org/issues/1647 1693 persistent 'comment' field for a zpool https://www.illumos.org/issues/1693 1708 adjust size of zpool history data https://www.illumos.org/issues/1708 1748 desire support for reguid in zfs https://www.illumos.org/issues/1748 Obtained from: illumos (changesets 13514, 13524, 13525) MFC after: 1 month
* Change the Makefile in cddl/lib/drti to use bsd.lib.mk instead ofrwatson2011-11-281-1/+1
| | | | | | | | | | | bsd.prog.mk -- we need to compile PIC, which requires a library build. With this change, USDT (userspace DTrace probes) work from within shared libraries. PR: kern/159046 Submitted by: Alex Samorukov <samm at os2.kiev.ua> Comments by: Scott Lystig Fritchie <slfritchie at snookles.com> MFC after: 3 days
* Use singular form for zfs destroy snapshot in zfs(8).mm2011-11-281-2/+2
| | | | MFC after: 6 days
* Add missing warning to zfs(8) for using "zfs destroy" with -r and -R flags.mm2011-11-281-0/+14
| | | | | Obtained from: illumos MFC after: 6 days
* Add missing -n flag to "zpool import" description.mm2011-11-271-1/+1
| | | | MFC after: 1 week
* Fix zfs(8) and zpool(8) context help to repport supported flags.mm2011-11-272-6/+6
| | | | MFC after: 3 days
* Update ZFS manual pages to a mdoc(7) reimplementation.mm2011-11-274-5006/+4446
| | | | | | | | | | | | | | | The zfs(8) and zpool(8) manual pages now match the state of the ZFS module and have been customized for FreeBSD. The new texts of the "Deduplication" subsection in zfs(8), the zpool "split" command, the zfs "dedup" property and several other missing parts have been added from illumos or OpenSolaris snv_134 (CDDL-licensed). The mdoc(7) reimplementation of whole manual pages, the descriptions of the zpool "readonly" property, "zfs diff" command and descriptions of several other missing command flags and/or options were authored by myself. MFC after: 1 week
* Revert back to revision 227649 because of license uncertainity.mm2011-11-212-1204/+232
| | | | | | Manual pages from OpenSolaris svn_134 are still properly CDDL licensed but I have been informed that the parts from s11ex are uncertain even if they contain a CDDL header.
* Fix mismerge in copyright of zpool(8).mm2011-11-211-1/+3
| | | | MFC after: 4 days
* Update zfs(8) and zpool(8) manpages from CDDL-licensed sources [1].mm2011-11-212-234/+1204
| | | | | | | | | | | | | Improved alignment for a maximum width of 80 characters. Mark unsupported parts as such. Reported to vendor: Illumos issue #1801 References: https://www.illumos.org/issues/1801 Obtained from: OpenSolaris CDDL manual pages (snv_134, s11express) [1] MFC after: 4 days
* For now, remove MANFILTER from ZFS manpages (bad effect on html output).mm2011-11-214-8/+0
| | | | MFC after: 4 days
* Update and desolarization of zdb(8) and zstreamdump(1) manual pages:mm2011-11-204-54/+20
| | | | | | | | | | | - synchronized to match new vendor code [1] - removed ATTRIBUTES sections - updated SEE ALSO sections - properly updated copyright information (required by CDDL) - remove empty lines via MANFILTER Obtained from: Illumos [1] MFC after: 5 days
* More zfs(8) manpage fixes:mm2011-11-181-28/+1
| | | | | | | | - remove shareiscsi property - mark casesensitivity property as unsupported - remove reference to Solaris Administration Guide MFC after: 1 week
* Fix reference to fsync(2).mm2011-11-181-2/+2
| | | | | | Add more references to SEE ALSO section. MFC after: 1 week
* Update and desolarization of zfs(8) and zpool(8) manual pages:mm2011-11-184-956/+1560
| | | | | | | | | | | | | | | | | | | | | - synchronized to match new vendor code (Illumos rev. 13513) [1] - removed references to sun commands (replaced with FreeBSD commands) - removed ATTRIBUTES sections - updated SEE ALSO sections - properly updated copyright information (required by CDDL) - remove empty lines via MANFILTER zfs(8) only: - replaced "Zones" section with new "Jails" section - removed misleading "ZFS Volumes as Swap or Dump Devices" section - updated shareiscsi and sharesmb option information (not supported on FreeBSD) - replace zoned property with jailed property zpool(8) only: - updated device names in examples Obtained from: Illumos (as of rev. 13513:f84d4672fdbd) [1] MFC after: 1 week
* Import upstream changesets for the output of the "zpool" command:mm2011-11-141-4/+41
| | | | | | | | | | | | 952 separate intent logs should be obvious in 'zpool iostat' output 1337 `zpool status -D' should tell if there are no DDT entries References: https://www.illumos.org/issues/952 https://www.illumos.org/issues/1337 Obtained from: Illumos (issues 952, 1337; changesets 13384, 13432) MFC after: 1 week
* Fix a few gratuitous library dependencies. Some of the ZFS utilitiesrmh2011-10-306-13/+13
| | | | | | | | | | | | | | | | | are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. Reviewed by: pjd, mm Approved by: kib (mentor) MFC after: 1 week
* Update copyright to include myself.pjd2011-10-245-0/+11
| | | | MFC after: 2 weeks
* Extend r226676 to allow rename without unmount even for file systems withpjd2011-10-246-34/+87
| | | | | | | | | | | | | non-legacy mountpoints. It is better to be able to rename such file systems and let them be mounted in old places until next reboot than using live CD, etc. to rename with remount. This is implemented by adding -u option to 'zfs rename'. If file system's mountpoint property is set to 'legacy' or 'none', there is no need to specify -u. Update zfs(8) manual page to reflect this addition. MFC after: 2 weeks
* Allow to rename file systems without remounting if it is possible.pjd2011-10-243-3/+22
| | | | | | | | | | | | | | | | | | | | It is possible for file systems with 'mountpoint' preperty set to 'legacy' or 'none' - we don't have to change mount directory for them. Currently such file systems are unmounted on rename and not even mounted back. This introduces layering violation, as we need to update 'f_mntfromname' field in statfs structure related to mountpoint (for the dataset we are renaming and all its children). In my opinion it is worth it, as it allow to update FreeBSD in even cleaner way - in ZFS-only configuration root file system is ZFS file system with 'mountpoint' property set to 'legacy'. If root dataset is named system/rootfs, we can snapshot it (system/rootfs@upgrade), clone it (system/oldrootfs), update FreeBSD and if it doesn't boot we can boot back from system/oldrootfs and rename it back to system/rootfs while it is mounted as /. Before it was not possible, because unmounting / was not possible. MFC after: 2 weeks
* zdb: access dp_free_bpobj only if pool version is >= SPA_VERSION_DEADLISTSpjd2011-10-211-2/+4
| | | | | Submitted by: avg MFC after: 3 days
* thr_create: new_thread_ID may be NULLpjd2011-10-211-1/+5
| | | | | Submitted by: avg MFC after: 3 days
* libzpool task_alloc: pass only valid flags to kmem_allocpjd2011-10-211-1/+1
| | | | | | | | tqflags may contain other flags besided those that are suitable for kmem_alloc == umem_alloc Submitted by: avg MFC after: 3 days
* Make all the lines align properly.pjd2011-10-201-4/+4
| | | | MFC after: 3 days
* Remove assertion that prevents zfs rename of datasets with mountpoint=nonemm2011-09-281-1/+0
| | | | | | | | | | | or mountpoint=legacy that have children datasets. This also fixes dataset rename when receiving incremental snapshots as reported on freebsd-fs@ This assertion was made triggerable by opensolaris change #10196. PR: bin/160400 Reviewed by: pjd MFC after: 1 week
* Fix serious bug in ZIL that can lead to pool corruptionmm2011-07-301-0/+35
| | | | | | | | | | | | | | in the case of a held dataset during remount. Detailed description is available at: https://www.illumos.org/issues/883 illumos-gate revision: 13380:161b964a0e10 Reviewed by: pjd Approved by: re (kib) Obtained from: Illumos (Bug #883) MFC after: 3 days
* Fix wrong initialization of "cmd" for calling the jail/unjail ioctl.mm2011-07-301-1/+2
| | | | | | Reviewed by: pjd@, delphij@ Approved by: re (kib) MFC after: 3 days
* ZFS tries to allocate blocks evenly across all devices. This means whenmm2011-07-181-0/+2
| | | | | | | | | | | | | devices are imbalanced zfs will lots of CPU searching for space on devices which tend to be pretty full. It should instead fail quickly on the full devices and move onto devices which have more availability. New loader tunable: vfs.zfs.mg_alloc_failures (min = 8) Illumos-gate changeset: 13379:4df42cc92254 Obtained from: Illumos (Bug #1051) MFC after: 2 weeks
* Resurrect the ZFS "aclmode" propertymm2011-07-181-2/+3
| | | | | | | | | Change default of "aclmode" to "discard". Illumos-gate changeset: 13370:8c04143bd318 Obtained from: Illumos (Feature #742) MFC after: 2 weeks
* cddl/contrib/opensolaris/cmd/zpool/zpool_main.c:gibbs2011-07-183-2/+154
| | | | | | | | | | cddl/contrib/opensolaris/cmd/zpool/zpool.8: cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c: Add the "zpool labelclear" command. This command can be used to wipe the label data from a drive that is not active in a pool. The optional "-f" argument can be used to treat an exported or foreign vdev as "inactive" thus allowing its label information to be cleared.
* Correct reporting of missing leaf vdevs so that the GUID required togibbs2011-07-182-8/+18
| | | | | | | | | | | | | | | | | perform pool actions is always displayed. cddl/contrib/opensolaris/cmd/zpool/zpool_main.c: The "zpool status" command reports the "last seen at" device node path when the vdev name is being reported by GUID. Augment this code to assume a GUID is reported when a device goes missing after initial boot in addition to the previous behavior of doing this for devices that aren't seen at boot. cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c: In zpool_vdev_name(), report recently missing devices by GUID. There is no guarantee they will return at their previous location.
OpenPOWER on IntegriCloud