Commit Graph

78 Commits

Author SHA1 Message Date
Faruk Kasumovic 46e9af7090 Merge branch 'hotfix/remove_println' 2020-01-15 15:40:32 +01:00
Faruk Kasumovic 245ec09a3f Remove fmt.Println call from SendResume 2020-01-15 15:40:16 +01:00
Faruk Kasumovic 982839bda5 Merge branch 'master' into develop 2019-12-20 10:21:40 +01:00
Asmir Selimovic 9901e4a20c - Option to resume interrupted send 2019-12-20 10:20:00 +01:00
Faruk Kasumovic c33afd1032 Merge branch 'master' into develop 2019-12-20 10:11:41 +01:00
Faruk Kasumovic 119822040b - Make SendOne compatible with libzfs 0.8 2019-12-20 10:09:00 +01:00
Dario Tranchitella a21bc233c2 Avoiding the nice bytes representation (#26)
Fixes #25, This was broken since libzfs 0.8, by the `literal` argument in the call to zpool_get_propetry function.
2019-12-19 08:29:16 +01:00
Didier Roche f0994c77ba Force refreshing property on C side when ReloadProperties() (#24) 2019-12-18 09:25:03 +01:00
Didier Roche e50663fa59 Maps ZPOOL_PROP_AUTOTRIM to PoolPropAutotrim (#20)
ZPOOL_PROP_AUTOTRIM is part of Trim support added in zfs 0.8
(1b939560be).
Add it and prevents panic when pool is reloading its properties.
Fixes #19
2019-08-07 11:49:32 +02:00
Faruk Kasumovic 8bf9664c9c Merge branch 'dev-zfs-0.7.x' 2019-06-20 21:28:44 +02:00
Didier Roche 29b1f8314d Fix conflicting rlim64_t conflicting types (#17)
Remove "typedef unsigned long int rlim64_t" as rlim64_t is already
defined in /usr/include/i386-linux-gnu/bits/resource.h on 32 bits.
2019-06-20 21:18:00 +02:00
steigr b16d96b1a8 zfs 0.8 support (#15)
* Rename Rewind-Policy to Load-Policy

See 8a393be353 (diff-f29552ad5ed97006cc80fc2b453cbe39R726) for details.

Signed-off-by: steigr <me@stei.gr>

* Use threadpool for zpool_search_import.

See e89f1295d4 (diff-24bf46767aadc66215cb194bdba266e7) for details.

Signed-off-by: steigr <me@stei.gr>

* Use sendflags struct.

See 835db58592 for details.

Signed-off-by: steigr <me@stei.gr>

* Added new pool properties `Checkpoint` and `LoadGuid`

OpenZFS 9166 - zfs storage pool checkpoint: d2734cce68
read/write kstats per dataset: a448a2557e

Signed-off-by: steigr <me@stei.gr>
2019-06-20 21:17:31 +02:00
Faruk Kasumovic 3805d8a4c1 Increase deadline timeout for estimating snapshot send size, from 15 to 60 seconds 2019-05-31 10:40:03 +02:00
Faruk Kasumovic 9e6bcc9df5 Change how properties single linked list is released from memory 2019-03-07 18:55:59 +01:00
Faruk Kasumovic 99406fb402 Merge branch 'dev-zfs-0.7.x' 2019-01-21 16:31:16 +01:00
Faruk Kasumovic 8633d43e77 Use go mod for handling eventual go packages dependencies and builds outside of GOPATH 2019-01-21 16:29:40 +01:00
Faruk Kasumovic 57e42e824f DestroyPromote - recursive destroy dataset, but don’t destroy any dependent clones, promote them first
- Clones get list of clones (paths) made from given dataset or snapshot
 - Get list of snapshots
 - Find snapshot (search for snapshot by name in children list)
 - IsSnapshot change signature (for simplification, hope it wan’t break lot of code)
2018-12-17 14:01:59 +01:00
Faruk Kasumovic 7482756d85 Changes to build on musl/alpine 2018-11-15 21:58:33 +01:00
Faruk Kasumovic 145d6f8d7d README update 2018-11-09 19:41:37 +01:00
Faruk Kasumovic d7d3b1e9b7 Merge branch 'dev-zfs-0.7.x'
# Conflicts:
#	zpool.c
2018-11-09 16:24:46 +01:00
Faruk Kasumovic 6d3c5e3bd4 Prevent race condition on zfs-linux internal implementation of access to mnttab 2018-11-09 16:08:20 +01:00
Faruk Kasumovic 0d2d2cf113 Functions to set hold, release and list user references on snapshots 2018-11-02 11:15:55 +01:00
Faruk Kasumovic 951202b308 Force pool imports and call improved pool search handler 2018-09-25 14:27:13 +02:00
Faruk Kasumovic ca2b45d22f Make sure PoolImportSearch is properly initialized 2018-09-18 14:35:48 +02:00
Faruk Kasumovic bcd0988597 Fix problem with from snapshot name interpretation on incremental syncs 2018-08-15 20:23:12 +02:00
Faruk Kasumovic 159184017a Merge branch 'dev-zfs-0.6.5.x' into dev-zfs-0.7.x 2018-08-06 14:54:47 +02:00
Faruk Kasumovic 897b81a1af Skip destroyed pools in zpool import 2018-08-06 14:54:13 +02:00
Faruk Kasumovic 21c2f90b27 Enable 0.7.x features per default 2018-08-06 14:21:34 +02:00
Faruk Kasumovic fd4a79d895 Merge branch 'dev-zfs-0.7.x' of ssh://tuzla-git.local:2020/fkasumovic/go-libzfs into dev-zfs-0.7.x 2018-08-06 14:06:18 +02:00
Faruk Kasumovic 6d3dff30aa Estimate snapshot send size 2018-08-06 10:35:39 +02:00
Faruk Kasumovic 6b01056691 Additional compatibility changes to work with libzfs 0.7.x 2018-08-06 10:35:39 +02:00
Faruk Kasumovic c0f5b857fc Port to zfs-0.7.x
Compatibility changes to work with libzfs 0.7.x, changes are not bacward compatible
2018-08-06 10:35:39 +02:00
Faruk Kasumovic 4cd8ea7346 Skip destroyed pools in pool import search 2018-08-06 10:34:42 +02:00
Faruk Kasumovic 46ec88c0a8 Estimate snapshot send size 2018-07-11 16:20:37 +02:00
Faruk Kasumovic 5d716ef4ec Additional compatibility changes to work with libzfs 0.7.x 2018-07-06 13:35:47 +02:00
Faruk Kasumovic c8b6755593 Port to zfs-0.7.x
Compatibility changes to work with libzfs 0.7.x, changes are not bacward compatible
2018-07-02 14:37:54 +02:00
Faruk Kasumovic 1830efcb43 Merge branch 'sw-3.1' into dev 2018-06-29 13:18:55 +02:00
Faruk Kasumovic 7822f47737 PoolStatus to string conversion 2018-06-26 14:53:01 +02:00
Faruk Kasumovic 441e099de9 zpool online, offline and clear devices 2018-06-26 14:01:39 +02:00
Faruk Kasumovic 44a53fa2e4 Fix bug: Overlay property not updated 2018-04-12 11:27:31 +02:00
Faruk Kasumovic b1b9ae5efc - Fix PoolImportSearch not listing pools that are not explicitly exported 2018-04-10 13:45:02 +02:00
Faruk Kasumovic f5a73ad14f Return logs (ZIL) vdev as well in VDevTree 2018-03-28 10:24:47 +02:00
Faruk Kasumovic 08a4903509 - Ability to create pool with spares, and l2cache
This breaks previous API PoolCreate function call, changes to fix this
break will be necessary.
2018-01-08 15:29:42 +01:00
Faruk Kasumovic 006e8a798a - Small fixes 2017-12-07 09:54:07 +01:00
Faruk Kasumovic a7726113d4 - Bug fixes for send recv, and mount 2017-08-04 13:12:41 +02:00
Faruk Kasumovic 307acf899a - Fix bug, zpool export failing 2017-08-04 13:12:12 +02:00
Faruk Kasumovic 1b47551b87 - ZFS send/receive 2017-06-15 14:12:39 +02:00
Faruk Kasumovic 8fd0833477 - Fix issue not building on go 1.8 , and some more improvements 2017-06-02 08:42:14 +02:00
Faruk Kasumovic fa91900915 - Fix bug not fetching disk path in pool configuration when disk is unavailable (plugged off) 2017-04-25 13:24:34 +02:00
Faruk Kasumovic 89e00d6218 - Implement dataset/volume clone promote function 2017-03-17 14:22:17 +01:00