freebsd-dev/module/zcommon
Christian Schwarz 305bc4b370 Make createtxg and guid properties public
Document the existence of `createtxg` and `guid` native properties
in man pages and zfs command output.

One of the great features of ZFS is incremental replication of
snapshots, possibly between pools on different machines.

Shell scripts are commonly used to auomate this procedure. They have to
find the most recent common snapshot between both sides and then
perform incremental send & recv.
Currently, scripts rely on the sorting order of `zfs list`, which
defaults to `createtxg`, and the assumption that snapshot names on
either side do not change.

By making `createtxg` and `guid` part of the public ZFS interface,
scripts are enabled to use

  a) `createtxg` to determine the logical & temporal order of snapshots
     (the creation property is not an equivalent substitute since
      multiple snapshots may be created within one second)
  b) `guid` to uniquely identify a snapshot, independent of its current
      display name

This has the potential of making scripts safer and correct.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: DHE <git@dehacked.net>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #6102
2017-05-09 15:36:53 -07:00
..
Makefile.in Add superscalar fletcher4 2016-11-04 10:53:03 -07:00
zfs_comutil.c Add missing *_destroy/*_fini calls 2017-05-04 19:26:28 -04:00
zfs_deleg.c OpenZFS 6931 - lib/libzfs: cleanup gcc warnings 2017-02-07 14:02:27 -08:00
zfs_fletcher_aarch64_neon.c Add superscalar fletcher4 2016-11-04 10:53:03 -07:00
zfs_fletcher_avx512.c Fletcher4: save/reload implementation context 2016-10-05 16:41:46 +02:00
zfs_fletcher_intel.c Fletcher4: save/reload implementation context 2016-10-05 16:41:46 +02:00
zfs_fletcher_sse.c codebase style improvements for OpenZFS 6459 port 2017-01-22 13:25:40 -08:00
zfs_fletcher_superscalar4.c Add superscalar fletcher4 2016-11-04 10:53:03 -07:00
zfs_fletcher_superscalar.c Add superscalar fletcher4 2016-11-04 10:53:03 -07:00
zfs_fletcher.c Use fletcher_4 routines natively with abd_iterate_func() 2017-02-01 09:34:22 -08:00
zfs_namecheck.c OpenZFS 7386 - zfs get does not work properly with bookmarks 2017-01-26 14:42:15 -08:00
zfs_prop.c Make createtxg and guid properties public 2017-05-09 15:36:53 -07:00
zfs_uio.c Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
zpool_prop.c More ashift improvements 2017-05-03 09:31:05 -07:00
zprop_common.c Change KM_PUSHPAGE -> KM_SLEEP 2015-01-16 14:41:26 -08:00