HomeFreeBSD

Add snapshots_changed as property

Description

Add snapshots_changed as property

Make dd_snap_cmtime property persistent across mount and unmount
operations by storing in ZAP and restore the value from ZAP on hold
into dd_snap_cmtime instead of updating it.

Expose dd_snap_cmtime as 'snapshots_changed' property that provides a
mechanism to quickly determine whether snapshot list for dataset has
changed without having to mount a dataset or iterate the snapshot list.

It specifies the time at which a snapshot for a dataset was last
created or deleted. This allows us to be more efficient how often we
query snapshots.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #13635

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on Aug 2 2022, 11:45 PM
GitHub <noreply@github.com>Committed on Aug 2 2022, 11:45 PM
Parents
rG5ad44a0ce9cb: FreeBSD: Ignore symlink to i386 includes
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG9681de465768: Add snapshots_changed as property (authored by Umer Saleem <usaleem@ixsystems.com>).Aug 2 2022, 11:45 PM