summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/cmd/zpool
Commit message (Collapse)AuthorAgeFilesLines
* Manually merge part of vendor import r238583 from Illumos.delphij2013-07-181-1/+1
| | | | | | | | | Illumos changeset: 13680:2bd022a765e2 Illumos ZFS issue: 2671 zpool import should not fail if vdev ashift has increased MFC after: 3 days
* Fixed ZFS zpool freeze (debug command) not processing due to invalid ioctl ↵smh2013-06-211-4/+3
| | | | | | call syntax. MFC after: 1 week
* MFV r251623:delphij2013-06-111-8/+29
| | | | | | | | | zpool create should treat -O mountpoint and -m the same Illumos ZFS issues: 3745 zpool create should treat -O mountpoint and -m the same MFC after: 2 weeks
* MFC @248461mm2013-03-182-4/+8
|\
| * MFV r248266:mm2013-03-142-4/+8
| | | | | | | | | | | | | | | | | | | | Import minor ZFS changes from vendor Illumos ZFS issues: 3604 zdb should print bpobjs more verbosely (fix zdb hang) 3606 zpool status -x shouldn't warn about old on-disk format MFC after: 3 days
* | WiP merge of libzfs_core (MFV r238590, r238592)mm2013-03-051-70/+101
|/ | | | not yet working, ioctl handling needs to be changed
* Use the right year.delphij2013-02-111-1/+1
| | | | Noticed by: Denis Ahrens <denis h3q com>
* mdoc: Remove EOL whitespace.joel2013-02-091-3/+3
|
* MFV r245512:delphij2013-02-091-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Allow to create pool even if mount point directory is not empty if -f is given.pjd2012-12-301-2/+3
| | | | Obtained from: WHEEL Systems
* Update manpage dates in zfs.8 and zpool.8mm2012-11-261-1/+1
| | | | MFC after: 2 weeks
* Sort SEE ALSO xrefs by the manual section number and add a missing comma.pluknet2012-11-151-1/+1
|
* Move zpool-features manual page from section 5 to section 7mm2012-11-143-10/+10
| | | | | | | and fix references Reported by: pluknet MFC after: 1 week
* Fix an apparent typo in the manual section number in .Dt: it should be 5.pluknet2012-11-131-1/+1
|
* Merge recent zfs vendor changes, sync code and adjust userland DEBUG.mm2012-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | 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
* Add myself to copyright sections, per CDDL license.gjb2012-09-031-0/+1
| | | | Requested by: mm
* Remove trailing whitespace.joel2012-09-011-1/+1
|
* Mdoc fixes.joel2012-08-312-15/+16
|
* Merge recent vendor changes:mm2012-08-281-1/+24
| | | | | | | | | | | | | | 3100 zvol rename fails with EBUSY when dirty 3104 eliminate empty bpobjs 3120 zinject hangs in zfsdev_ioctl() due to uninitialized zc References: https://www.illumos.org/issues/3100 https://www.illumos.org/issues/3104 https://www.illumos.org/issues/3120 Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks
* Add missing parts to zpool-features.5 manual pagemm2012-08-271-2/+10
| | | | | Obtained from: vendor/illumos/dist MFC after: 2 weeks
* Fix wrong indent according to style(9)mm2012-07-311-2/+2
| | | | | | | | | | | | | | | MFC after: 2 weeks > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M zpool_main.c
* Fix reporting of root pool upgrade notice.mm2012-07-311-19/+19
| | | | MFC after: 2 weeks
* Partial MFV (illumos-gate 13753:2aba784c276b)mm2012-07-302-103/+363
| | | | | | | | | 2762 zpool command should have better support for feature flags References: https://www.illumos.org/issues/2762 MFC after: 2 weeks
* 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-113-37/+403
| | | | | | | | | | | | | | | | | | | 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
* 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
* Fix typo miror -> mirrormm2012-04-161-1/+1
| | | | | Reported by: Glen Barber <gjb@FreeBSD.org> MFC after: 3 days
* Remove unnecesary "Ns" macros and add missing command example to zpool(8).mm2011-12-021-56/+64
| | | | | Reported by: Nobuyuki Koganemaru <kogane@FreeBSD.org> MFC after: 3 days
* Merge new ZFS features from illumos:mm2011-11-282-25/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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-271-3/+2
| | | | MFC after: 3 days
* Update ZFS manual pages to a mdoc(7) reimplementation.mm2011-11-271-1769/+1639
| | | | | | | | | | | | | | | 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-723/+140
| | | | | | 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-211-142/+723
| | | | | | | | | | | | | 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 zfs(8) and zpool(8) manual pages:mm2011-11-181-356/+530
| | | | | | | | | | | | | | | | | | | | | - 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
* Make all the lines align properly.pjd2011-10-201-4/+4
| | | | MFC after: 3 days
* cddl/contrib/opensolaris/cmd/zpool/zpool_main.c:gibbs2011-07-182-0/+152
| | | | | | | | | | 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-181-3/+4
| | | | | | | | | | | | | | | | | 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.
* cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:gibbs2011-07-181-1/+1
| | | | | | | | | | cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c: o Add zpool_pool_state_to_name() API to libzfs which converts a pool_state_t into a user consumable string. o While here, correct constness of make zpool_state_to_name() and zpool_label_disk(). MFD after: 1 week
* Finally... Import the latest open-source ZFS version - (SPA) 28.pjd2011-02-275-615/+1545
| | | | | | | | | | | | | | | Few new things available from now on: - Data deduplication. - Triple parity RAIDZ (RAIDZ3). - zfs diff. - zpool split. - Snapshot holds. - zpool import -F. Allows to rewind corrupted pool to earlier transaction group. - Possibility to import pool in read-only mode. MFC after: 1 month
* Enable offlining of log devices.mm2010-09-271-220/+220
| | | | | | | | | | | | | OpenSolaris revision and Bug IDs: 9701:cc5b64682e64 6803605 should be able to offline log devices 6726045 vdev_deflate_ratio is not set when offlining a log device 6599442 zpool import has faults in the display Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6803605, 6726045, 6599442) MFC after: 3 weeks
* Eliminate confusing while () loop. In the first version of the code it waspjd2010-08-311-4/+3
| | | | | | there to avoid gotos, but in the current version it serves no purpose. MFC after: 2 weeks
* When upgrading a pool which contain root file system, give user a hint thatpjd2010-08-311-0/+47
| | | | | | he should update boot code. MFC after: 2 weeks
OpenPOWER on IntegriCloud