Skip to content

Releases: Jehops/zap

Fix issue with replication of child datasets silently failing

06 Mar 20:31
Compare
Choose a tag to compare

As reported by David Samms dsamms@nw-ds.com, when replicating with -r, if replication of one of the child datasets failed, subsequent checks did not occur for that child dataset.

% zap rep -v -r zroot/ROOT

## Replication of zroot/ROOT completed, but replication of zroot/ROOT/default
   failed.

% zap rep -v -r zroot/ROOT

## The local and remote snapshots matched for zroot/ROOT and the snapshots
   for zroot/ROOT/default were not compared, so no errors were reported.

Also, proceed with a warning for untested OSes instead of bailing out.

Correct the reported version with zap -v

29 Jan 23:16
Compare
Choose a tag to compare
0.6.7

Bump version, which should have been done for 0.6.6

Fix subcommand options in the man page

29 Jan 22:59
Compare
Choose a tag to compare
Pre-release
0.6.6

Fix subcommand options.

Create a man page

28 Jan 21:28
Compare
Choose a tag to compare
Create a man page Pre-release
Pre-release
0.6.5

Fix typo.

Bug fixes and argument simplification

08 Jan 05:18
Compare
Choose a tag to compare
Pre-release
Update to version 0.6.4

- Fix issues with replication.
  - Do not require all '-r dataset' arguments to be listed first.
  - Fix error checking.  If only one argument to 'zap rep' was supplied,
    replication would silently fail.  This required breaking the interface.
    Instead of
    zap rep|replicate [-dLSv] [[-r dataset]... [dataset]... remote_dest]
    the format is now
    zap rep|replicate [-dLSv] [remote_dest [-r] dataset [[-r] dataset]...].

- Fix issue with destroy.
  - In 0.6.3 $zptn was updated to be an extended regular expression, but when a
    host was not supplied as an argument, grep was being called with a basic
    regular expression.

- In 'zap snap', do not require all '-r dataset' arguments to be listed first.

Fix problem calling basic sed with unupported a|b

07 Jan 03:09
Compare
Choose a tag to compare
Fix snapshot time capture, which failed b/c basic sed cannot do a|b

Switch to sed's extended regular expressions.  Because part of the
regular expression was stored in a variable that was also passed to grep, one
call to grep also had to be switched to an extended regular expression.

Add options to control behaviour when a resilver is in progress

04 Jan 18:55
Compare
Choose a tag to compare
0.6.2

Add options to control behaviour when a resilver is in progress.

Fix incorrect replication example in documentation

04 Jan 17:44
Compare
Choose a tag to compare
0.6.1

Fix incorrect replication example in documentation.

Add remote replication support and update command options

04 Jan 17:23
Compare
Choose a tag to compare
0.6.0

Add a warning about the change to the format of zap snapshot names.

Create flags to be verbose and to recursively create snapshots

14 Nov 04:20
Compare
Choose a tag to compare
  • Use getops for option handling.
  • Create snapshots again when a scrub is in progress.
  • Let the -r flag be specified for individual datasets
    • To handle parsing the '-r' flags, the create function was broken off into two
      functions: create_parse() and create(). create() creates one snapshot per call.
  • Use upper case for global variables.
  • Created helper functions pool_ok and pool_scrub.
  • Minor changes to warning messages.
  • POSIX sh does not support local, so initialize variables intended to be local
    to a function.