summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/cmd/zfs
Commit message (Collapse)AuthorAgeFilesLines
* Fix misleading or remove irrelevant illumos messages and manpage referencesmm2013-07-041-9/+13
| | | | | | | | in the zfs command. PR: bin/178996 Submitted by: Peter Schaefer <peter.schaefer@wilhelmheinrichs.de> MFC after: 3 days
* MFV r251644:delphij2013-06-121-2/+2
| | | | | | | | | | | Poor ZFS send / receive performance due to snapshot hold / release processing (by smh@) Illumos ZFS issues: 3740 Poor ZFS send / receive performance due to snapshot hold / release processing MFC after: 2 weeks
* Merge libzfs_core branch:mm2013-03-212-80/+157
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | includes MFV 238590, 238592, 247580 MFV 238590, 238592: In the first zfs ioctl restructuring phase, the libzfs_core library was introduced. It is a new thin library that wraps around kernel ioctl's. The idea is to provide a forward-compatible way of dealing with new features. Arguments are passed in nvlists and not random zfs_cmd fields, new-style ioctls are logged to pool history using a new method of history logging. http://blog.delphix.com/matt/2012/01/17/the-future-of-libzfs/ MFV 247580 [1]: To address issues of several deadlocks and race conditions the locking code around dsl_dataset was rewritten and the interface to synctasks was changed. User-Visible Changes: "zfs snapshot" can create more arbitrary snapshots at once (atomically) "zfs destroy" destroys multiple snapshots at once "zfs recv" has improved performance Backward Compatibility: I have extended the compatibility layer to support full backward compatibility by remapping or rewriting the responsible ioctl arguments. Old utilities are fully supported by the new kernel module. Forward Compatibility: New utilities work with old kernels with the following restrictions: - creating, destroying, holding and releasing of multiple snapshots at once is not supported, this includes recursive (-r) commands Illumos ZFS issues: 2882 implement libzfs_core 2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once 3464 zfs synctask code needs restructuring References: https://www.illumos.org/issues/2882 https://www.illumos.org/issues/2900 https://www.illumos.org/issues/3464 [1] MFC after: 1 month Sponsored by: Hybrid Logic Inc. [1]
| * MFV r247580:mm2013-03-192-51/+71
| | | | | | | | | | | | | | | | | | | | | | Merge synctask code restructuring from vendor. Modify forward and backward compatibility to support new change. Illumos ZFS issues: 3464 zfs synctask code needs restructuring Sponsored by: Hybrid Logic Ltd.
| * MFC @248461mm2013-03-181-1/+1
| |\ | |/ |/|
| * WiP merge of libzfs_core (MFV r238590, r238592)mm2013-03-052-28/+85
| | | | | | | | not yet working, ioctl handling needs to be changed
* | Update zfs.8 manpage date (missing in r247585)mm2013-03-141-1/+1
|/ | | | MFC: together with r247585
* MFV r247316:mm2013-03-011-0/+33
| | | | | | | | | | | | | Merge new read-only zfs properties from vendor (illumos) Illumos ZFS issues: 3588 provide zfs properties for logical (uncompressed) space used and referenced References: https://www.illumos.org/issues/3588 MFC after: 2 weeks
* Use the right year.delphij2013-02-111-1/+1
| | | | Noticed by: Denis Ahrens <denis h3q com>
* Backport vendor changes in zfs(8) manual page (MFV r246389)mm2013-02-101-122/+129
| | | | | | | | | | Illumos ZFS issues: 3380 zfs man page: documentation for zfs allow is confusing References: https://www.illumos.org/issues/3380 MFC after: 2 weeks
* Correct spelling of "daemon". No .Dd bump.gavin2013-02-101-1/+1
| | | | | Noticed by: Nathan Rich <Nathan.Rich dynastysystems com> MFC after: 3 days
* MFV r245512:delphij2013-02-091-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Illumos zfs issue #3035 [1] LZ4 compression support in ZFS. LZ4 is a new high-speed BSD-licensed compression algorithm created by Yann Collet that delivers very high compression and decompression performance compared to lzjb (>50% faster on compression, >80% faster on decompression and around 3x faster on compression of incompressible data), while giving better compression ratio [1]. This version of LZ4 corresponds to upstream's [2] revision 85. Please note that for obvious reasons this is not backward read compatible. This means once a pool have LZ4 compressed data, these data can no longer be read by older ZFS implementations. Local changes: - On-stack hash table disabled and using kernel slab allocator instead, at this time. This requires larger kernel thread stack for zio workers. This may change in the future should we adjusted the zio workers' thread stack size. - likely and unlikely will be undefined if they are already defined, this is required for i386 XEN build. - Removed De Bruijn sequence based __builtin_ctz family of builtins in favor of the latter. Both GCC and clang supports these builtins. - Changed the way the LZ4 code detects endianness. - Manual pages modifications to mention the feature based on Illumos counterpart. - Boot loader changes to make it support LZ4 decompression. [1] https://www.illumos.org/issues/3035 [2] http://code.google.com/p/lz4/source/list Obtained from: Illumos (13921:9d721847e469) Tested on: FreeBSD/amd64 MFC after: 1 month
* Update manpage dates in zfs.8 and zpool.8mm2012-11-261-1/+1
| | | | MFC after: 2 weeks
* MFV r243395:mm2012-11-261-1/+27
| | | | | | | | | | | | | Introduce a new dataset aclmode setting "restricted" to protect ACL's being destroyed or corrupted by a drive-by chmod. illumos-gate 13889:a67716f16746 3254 add support in zfs for aclmode=restricted References: https://www.illumos.org/issues/3254 MFC after: 2 weeks
* zfs sha256 checksum is missing in zfs.8 manpagemm2012-11-251-1/+1
| | | | MFC after: 3 days
* Merge recent vendor changes in ZFS.mm2012-09-262-10/+3
| | | | | | | | | | | | | | Illumos issued covered: 2811 missing implementation: zfs send -r 3139 zdb dies when it tries to determine path of unlinked file 3189 kernel panic in ZFS test suite during hotspare_onoffline_004_neg 3208 moving zpool cross-endian results in incorrect user/group accounting References: https://www.illumos.org/issues/ + [issue_id] Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks
* It is possible to recursively destroy snapshots even if the snapshotpjd2012-09-231-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't exist on a dataset we are starting from. For example if we have the following configuration: tank tank/foo tank/foo@snap tank/bar tank/bar@snap We can execute: # zfs destroy -t tank@snap eventhough tank@snap doesn't exit. Unfortunately it is not possible to do the same with recursive rename: # zfs rename -r tank@snap tank@pans cannot open 'tank@snap': dataset does not exist ...until now. This change allows to recursively rename snapshots even if snapshot doesn't exist on the starting dataset. Sponsored by: rsync.net MFC after: 2 weeks
* Update usage to show the possiblity to use jail namebapt2012-09-191-2/+2
| | | | | Reported by: bdrewery MFC after: 1 month
* Allow zfs jail and zfs unjail to use both jailnames and jailidbapt2012-09-192-5/+5
| | | | | Reviewed by: pjd MFC after: 1 month
* Merge recent zfs vendor changes, sync code and adjust userland DEBUG.mm2012-09-122-405/+382
| | | | | | | | | | | | | | | | | | | | | Illumos issued covered: 1884 Empty "used" field for zfs *space commands 3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument is zero 3028 zfs {group,user}space -n prints (null) instead of numeric GID/UID 3048 zfs {user,group}space [-s|-S] is broken 3049 zfs {user,group}space -t doesn't really filter the results 3060 zfs {user,group}space -H output isn't tab-delimited 3061 zfs {user,group}space -o doesn't use specified fields order 3064 usr/src/cmd/zpool/zpool_main.c misspells "successful" 3093 zfs {user,group}space's -i is noop 3098 zfs userspace/groupspace fail without saying why when run as non-root References: https://www.illumos.org/issues/ + [issue_id] Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks
* Typo fix and minor word swap.gjb2012-09-051-3/+4
| | | | | | PR: 171356 Submitted by: bdrewery MFC After: 3 days
* Add myself to copyright sections, per CDDL license.gjb2012-09-031-0/+1
| | | | Requested by: mm
* Remove trailing whitespace.joel2012-09-011-7/+7
|
* Mdoc fixes.joel2012-09-011-22/+19
|
* Update zfs(8) manpage with illumos version of "zfs diff"mm2012-08-191-26/+44
| | | | | | | | | | | | Illumos issue: 2399 zfs manual page does not document use of "zfs diff" References: https://www.illumos.org/issues/2399 PR: docs/170764 Obtained from: ssh://anonhg@hg.illumos.org/illumos-gate MFC after: 1 week
* - Fix source dataset snapshot name in Example 15.gjb2012-08-121-4/+4
| | | | | | | - Bump date. MFC after: 3 days X-MFC-With: r239216
* Remove a leading space that breaks rendering.gjb2012-08-121-1/+1
| | | | MFC after: 3 days
* 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
* Correct error message.pjd2012-05-251-1/+1
| | | | MFC after: 3 days
* 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
* 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.
* 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
* 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
* 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-021-3/+3
| | | | | Reported by: Nobuyuki Koganemaru <kogane@FreeBSD.org> MFC after: 3 days
* Merge new ZFS features from illumos:mm2011-11-282-146/+426
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix zfs(8) and zpool(8) context help to repport supported flags.mm2011-11-271-3/+4
| | | | MFC after: 3 days
* Update ZFS manual pages to a mdoc(7) reimplementation.mm2011-11-271-3135/+2673
| | | | | | | | | | | | | | | 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-211-481/+92
| | | | | | 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.
* Update zfs(8) and zpool(8) manpages from CDDL-licensed sources [1].mm2011-11-211-92/+481
| | | | | | | | | | | | | 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
* 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
OpenPOWER on IntegriCloud