Add snapshots_changed_nsecs dataset property

Add a read-only dataset property, snapshots_changed_nsecs, which 
exposes the nanosecond resolution version of snapshots_changed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Wolfgang Hoschek <wolfgang.hoschek@mac.com>
Closes #17998
Closes #18031
This commit is contained in:
Wolfgang Hoschek
2026-01-06 12:36:20 -05:00
committed by GitHub
parent 6eef5cdc94
commit c77f17b750
8 changed files with 89 additions and 11 deletions
+9
View File
@@ -535,6 +535,15 @@ This allows us to be more efficient how often we query snapshots.
The property is persistent across mount and unmount operations only if the
.Sy extensible_dataset
feature is enabled.
.It Sy snapshots_changed_nsecs
Specifies the UTC time at which a snapshot for a dataset was last created
or deleted, expressed as the number of nanoseconds since the Unix epoch.
This is a high-precision version of
.Sy snapshots_changed ,
representing the same instant with nanosecond instead of second resolution.
The property is persistent across mount and unmount operations only if the
.Sy extensible_dataset
feature is enabled.
.It Sy volblocksize
For volumes, specifies the block size of the volume.
The