Faruk Kasumovic
039b070d1a
- Prevent double-free failure when the same dataset is closed multiple times
...
In some cases, copying dataset object, either by passing by value or in
some other pattern can lead to code that will close the same dataset
multiple times (e.g. defer). Or otherwise, code with complicated
handling of dataset cleanup.
Fixes : #30 , Closes : #31
2020-09-09 10:22:37 +02:00
Faruk Kasumovic
768fbf7f22
Add fetching of GUID in VDevTree
2020-08-31 10:56:49 +02:00
Didier Roche and Faruk Kasumovic
ee9aac43ac
Fix dataset to have to correct type
...
The parent type was used before if the dataset was opened via
openChildren().
2020-08-18 16:10:40 +02:00
Anton Tykhyy and Faruk Kasumovic
a91df3a028
Error constants: fix typo, add as per libzfs.h 0.8.2 ( #27 )
2020-08-18 16:06:32 +02:00
faruk
06178df9fe
- Tests for SendSize returning 0 and unpacking resume token
2020-07-16 13:34:14 +02:00
faruk
d53f3530af
- Unpack resume information from resume token to go structure ResumeToken
2020-07-16 13:34:14 +02:00
faruk
680fd3ef89
- Fix: SendSize always returns 0 (SRW-1479)
2020-07-16 13:33:56 +02:00
asmir
5a4d618fa5
- Implemented pool initialization actions
2020-04-22 15:41:23 +02:00
faruk
e24c488fee
- Fix: Concurrent access to properties even for a different pools still cause crash
...
Prevent concurrent access to all properties with global mutex
2020-02-12 09:38:44 +01:00
faruk
7c7ef79611
- Fix mount point property race condition causing segmentation fault failures
2020-02-10 13:35:58 +01:00
asmir and Gitea
4dcea86954
- Fixed memory leak in zpool_vded.Clear
2020-02-03 10:56:20 +00:00
asmir
5b0203da39
- Fixed memory leak in dataset_list_callb
2020-01-30 16:27:53 +01:00
asmir and faruk
e317057e63
- Enabled resumable flag
2020-01-17 14:10:10 +01:00
faruk
bcc079909a
Merge branch 'release/0.3.1'
2020-01-17 10:30:28 +01:00
faruk
a70a7a50a9
Merge branch 'master' into develop
2020-01-17 10:25:48 +01:00
faruk
1271596958
Remove SendOne since it does not make sense in context of this lib
2020-01-17 10:14:05 +01:00
faruk
e96fb8fdc2
Remove fmt.Println call from SendResume
2020-01-17 10:14:05 +01:00
asmir and faruk
cee262b95a
- Option to resume interrupted send
2020-01-17 10:14:05 +01:00
Asmir Selimovic and faruk
c0a3acfc99
- Return after failing in SetProperty ( #21 )
2020-01-17 10:14:05 +01:00
faruk
5ffd9a7924
Remove SendOne since it does not make sense in context of this lib
2020-01-17 10:09:41 +01:00
faruk
ed6aa6ccd0
Remove fmt.Println call from SendResume
2020-01-17 10:08:31 +01:00
asmir and faruk
c346b62190
- Option to resume interrupted send
2020-01-17 10:08:31 +01:00
Asmir Selimovic and faruk
ac0486e24f
- Return after failing in SetProperty ( #21 )
2020-01-17 10:08:31 +01:00
faruk
0f8f050563
Remove SendOne since it does not make sense in context of this lib
2020-01-17 10:00:35 +01:00
faruk
5ddc9a9d76
Remove SendOne since it does not make sense in context of this lib
2020-01-17 09:57:13 +01:00
faruk
6d31a0b04e
Merge tag 'vremove_println' into develop
2020-01-15 15:40:32 +01:00
faruk
46e9af7090
Merge branch 'hotfix/remove_println'
2020-01-15 15:40:32 +01:00
faruk
245ec09a3f
Remove fmt.Println call from SendResume
2020-01-15 15:40:16 +01:00
faruk
982839bda5
Merge branch 'master' into develop
2019-12-20 10:21:40 +01:00
asmir and faruk
9901e4a20c
- Option to resume interrupted send
2019-12-20 10:20:00 +01:00
faruk
c33afd1032
Merge branch 'master' into develop
2019-12-20 10:11:41 +01:00
faruk
119822040b
- Make SendOne compatible with libzfs 0.8
2019-12-20 10:09:00 +01:00
Dario Tranchitella and Faruk Kasumovic
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 and Faruk Kasumovic
f0994c77ba
Force refreshing property on C side when ReloadProperties() ( #24 )
2019-12-18 09:25:03 +01:00
Didier Roche and Faruk Kasumovic
e50663fa59
Maps ZPOOL_PROP_AUTOTRIM to PoolPropAutotrim ( #20 )
...
ZPOOL_PROP_AUTOTRIM is part of Trim support added in zfs 0.8
(https://github.com/zfsonlinux/zfs/commit/1b939560be5c51deecf875af9dada9d094633bf7 ).
Add it and prevents panic when pool is reloading its properties.
Fixes #19
2019-08-07 11:49:32 +02:00
faruk
8bf9664c9c
Merge branch 'dev-zfs-0.7.x'
2019-06-20 21:28:44 +02:00
Didier Roche and Faruk Kasumovic
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 and Faruk Kasumovic
b16d96b1a8
zfs 0.8 support ( #15 )
...
* Rename Rewind-Policy to Load-Policy
See https://github.com/zfsonlinux/zfs/commit/8a393be353c3bfffbfbe0f4d2bc57210b658dcde#diff-f29552ad5ed97006cc80fc2b453cbe39R726 for details.
Signed-off-by: steigr <me@stei.gr >
* Use threadpool for zpool_search_import.
See https://github.com/zfsonlinux/zfs/commit/e89f1295d4faa88bb05a62c8dd5f781657db5955#diff-24bf46767aadc66215cb194bdba266e7 for details.
Signed-off-by: steigr <me@stei.gr >
* Use sendflags struct.
See https://github.com/zfsonlinux/zfs/commit/835db58592d7d947e5818eb7281882e2a46073e0 for details.
Signed-off-by: steigr <me@stei.gr >
* Added new pool properties `Checkpoint` and `LoadGuid`
OpenZFS 9166 - zfs storage pool checkpoint: https://github.com/zfsonlinux/zfs/commit/d2734cce68cf740e015312314415f9034c67851c
read/write kstats per dataset: https://github.com/zfsonlinux/zfs/commit/a448a2557ec4938ed6944c7766fe0b8e6e5f6456
Signed-off-by: steigr <me@stei.gr >
2019-06-20 21:17:31 +02:00
faruk
3805d8a4c1
Increase deadline timeout for estimating snapshot send size, from 15 to 60 seconds
2019-05-31 10:40:03 +02:00
faruk
9e6bcc9df5
Change how properties single linked list is released from memory
2019-03-07 18:55:59 +01:00
faruk
99406fb402
Merge branch 'dev-zfs-0.7.x'
2019-01-21 16:31:16 +01:00
faruk
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