summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/cmd
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert previous commit. The bug was actually caused by an issuegnn2012-07-251-3/+1
| | | | | | | in pre 1.8.5 versions of sudo which were sending too many SIGINTs to processes when the user hit Ctrl-C. Pointed out by: avg@, rpaulo@, sbruno@
* Fix a bug in interrupt handling so that we're only consideredgnn2012-07-241-1/+3
| | | | | | | | impatient if we sent more than 2 INT signals. This fixes a bug where we wouldn't see aggregations print on the command line if we Ctrl-C'd a dtrace script or command line invocation. MFC after: 2 weeks
* Dtrace: improve handling of library paths.pfg2012-07-172-0/+152
| | | | | | | | | | | | | | | | | | | | | Merge changes from illumos 906 dtrace depends_on pragma should search all library paths, not just the current one 949 dtrace should only include the first instance of a library found on its library path Illumos Revisions: 13353:936a1e45726c 13354:2b2c36a81512 Reference: https://www.illumos.org/issues/906 https://www.illumos.org/issues/949 Tested by: Fabian Keil Obtained from: Illumos MFC after: 3 weeks
* Merge illumos commit 13455:7205f7794835pfg2012-07-141-0/+30
| | | | | | | | | | 1458 D compiler fails to generate error on sizeof() an undefined struct Reference: https://www.illumos.org/issues/1458 Tested by: Fabian Keil MFC after: 3 weeks
* Merge illumos commit 13749:df4cd82e2b60mm2012-07-131-1/+1
| | | | | | | | | | | | | | | 1796 "ZFS HOLD" should not be used when doing "ZFS SEND" froma read-only pool 2871 support for __ZFS_POOL_RESTRICT used by ZFS test suite 2903 zfs destroy -d does not work 2957 zfs destroy -R/r sometimes fails when removing defer-destroyed snapshot References: https://www.illumos.org/issues/1796 https://www.illumos.org/issues/2871 https://www.illumos.org/issues/2903 https://www.illumos.org/issues/2957 MFC after: 1 week
* Bring llquantize support into Dtrace.pfg2012-06-2734-0/+3390
| | | | | | | | | | | | | | | | | | Bryan Cantrill implemented the equivalent of semi-log graph paper for Dtrace so llquantize will use one logarithmic and one linear scale. Special thanks to Mark Peek for providing fix to an assertion and to Fabian Keill for testing the port. Illumos Revision: 13355:15b74a2a9a9d Reference: https://www.illumos/issues/905 Obtained from: Illumos Tested by: Fabian Keill, mp MFC after: 4 days
* Document the -v flag for zpool list.mm2012-06-122-1/+3
| | | | | | PR: 168970 Suggested by: Marcelo Araujo <araujo@FreeBSD.org> MFC after: 3 days
* Introduce "feature flags" for ZFS pools (bump SPA version to 5000).mm2012-06-116-52/+1032
| | | | | | | | | | | | | | | | | | | Add first feature "com.delphix:async_destroy" (asynchronous destroy of ZFS datasets). Implement features support in ZFS boot code. Illumos revisions merged: 13700:2889e2596bd6 13701:1949b688d5fb 2619 asynchronous destruction of ZFS file systems 2747 SPA versioning with zfs feature flags References: https://www.illumos.org/issues/2619 https://www.illumos.org/issues/2747 Obtained from: illumos (issue #2619, #2747) MFC after: 1 month
* Clean up trailing whitespace.gjb2012-06-091-21/+21
| | | | | MFC after: 3 days X-MFC-With: r236776
* Fix a typo: s/deafult/defaultgjb2012-06-091-1/+1
| | | | MFC after: 3 days
* Import illumos changeset 13570:3411fd5f1589mm2012-05-272-33/+213
| | | | | | | | | | | | | | | 1948 zpool list should show more detailed pool information Display per-vdev information with "zpool list -v". The added expandsize property has currently no value on FreeBSD. This changeset allows adding expansion support to individual vdevs in the future. References: https://www.illumos.org/issues/1948 Obtained from: illumos (issue #1948) MFC after: 2 weeks
* Import illumos changeset 13605:b5c2b5db80d6 (partial)mm2012-05-271-3/+3
| | | | | | | | | | | | 763 FMD msg URLs should refer to something visible Replace sun.com URL's with illumos.org References: https://www.illumos.org/issues/763 Obtained from: illumos (issue #763) MFC after: 1 week
* Import illumos changeset 13564:cf89c0c60496mm2012-05-271-1/+3
| | | | | | | | | | | 1946 incorrect formatting when listing output of multiple pools with zpool iostat -v References: https://www.illumos.org/issues/1946 Obtained from: illumos (issue #1946) MFC after: 1 week
* Import illumos changeset 13571:a5771a96228cmm2012-05-271-380/+706
| | | | | | | | | | 1950 ztest backwards compatibility testing option References: https://www.illumos.org/issues/1950 Obtained from: illumos (issue #1950) MFC after: 2 weeks
* Correct error message.pjd2012-05-251-1/+1
| | | | MFC after: 3 days
* zpool_do_import: use /dev instead of /dev/dsk as a defaultavg2012-05-151-1/+1
| | | | | | | | This affects behavior of zpool import without -d option. Reported by: Bruce Cran <bruce@cran.org.uk> Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de> MFC after: 2 weeks
* Import illumos changeset 13686:4bc0783f6064mm2012-05-102-0/+4
| | | | | | | | | | | | | 2703 add mechanism to report ZFS send progress If the zfs send command is used with the -v flag, the amount of bytes transmitted is reported in per second updates. References: https://www.illumos.org/issues/2703 Obtained from: illumos (issue #2703) MFC after: 2 weeks
* Remove unreachable break in zfs_main.cmm2012-05-101-1/+1
| | | | | | | | | | | | | Partial import of illumos changeset 13622:e5889df1eaac 2077 lots of unreachable breaks in illumos gate References: https://www.illumos.org/issues/2077 PR: kern/167370 Submitted by: Marcelo Araujo <araujo@FreeBSD.org> Obtained from: illumos (issue #2077) MFC after: 1 week
* Add support for force unmounting ZFS filesystems during "zfs rename"mm2012-05-102-8/+21
| | | | | | | | | | | | | | | with the -f flag. Reimplementation of the illumos changeset 13677:a0cbef703c12 2635 'zfs rename -f' to perform force unmount References: https://www.illumos.org/issues/2635 PR: kern/164447 Suggested by: Marcelo Araujo <araujo@FreeBSD.org> Obtained from: illumos (issue #2635) MFC after: 1 week
* Import illumos changeset 13618:c6ae14a341e8 [1]:mm2012-05-102-50/+280
| | | | | | | | | | | | | | | 2088 zdb could use a reasonable manual page Rewrite new zdb manpage to mdoc(7) References: https://www.illumos.org/issues/2088 PR: kern/167467 [1] Submitted by: Marcelo Araujo <araujo@FreeBSD.org> [1] Reviewed by: mm Obtained from: Illumos (issue #2088) MFC after: 1 week
* General mdoc(7) and typo fixes.gjb2012-05-101-1/+1
| | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Add -u option to 'zfs create' that prevents file system from beingpjd2012-04-242-6/+19
| | | | | | automatically mounted. This is similar to the 'zfs receive -u'. MFC after: 1 week
* - Correct a typo which prevents 'lzjb' be displayed;delphij2012-04-221-7/+7
| | | | - Use quotes when tab is used.
* Fix typo miror -> mirrormm2012-04-161-1/+1
| | | | | Reported by: Glen Barber <gjb@FreeBSD.org> MFC after: 3 days
* Analogous to r232059, add a parameter for the ZFS file system:mm2012-02-261-9/+14
| | | | | | | | | | | | | | | | allow.mount.zfs: allow mounting the zfs filesystem inside a jail This way the permssions for mounting all current VFCF_JAIL filesystems inside a jail are controlled wia allow.mount.* jail parameters. Update sysctl descriptions. Update jail(8) and zfs(8) manpages. TODO: document the connection of allow.mount.* and VFCF_JAIL for kernel developers MFC after: 10 days
* Import illumos changeset 13608 [1]:mm2012-02-232-6/+49
| | | | | | | | | | | | | add support for "-t <datatype>" argument to zfs get References: https://www.illumos.org/issues/1936 Update zfs(8) manpage in respect of [1]. Fix typo in zfs(8) manpage. Obtained from: illumos (issue #1936) MFC after: 1 week
* 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
* 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-213-5/+45
| | | | | | | | | | | | | | | | | | | | | | | | | 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 accidentially removed copyright lines in r228103mm2012-01-201-0/+1
| | | | | 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
* 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-285-172/+557
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Update and desolarization of zdb(8) and zstreamdump(1) manual pages:mm2011-11-202-54/+17
| | | | | | | | | | | - 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-182-956/+1556
| | | | | | | | | | | | | | | | | | | | | - 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
* Update copyright to include myself.pjd2011-10-241-0/+2
| | | | MFC after: 2 weeks
OpenPOWER on IntegriCloud