HomeFreeBSD

expose snapshot count via stat(2) of .zfs/snapshot (#13559)

Description

expose snapshot count via stat(2) of .zfs/snapshot (#13559)

Increase nlinks in stat results of ./zfs/snapshot based on snapshot
count. This provides quick and efficient method for administrators to
get snapshot counts without having to use libzfs or list the snapdir
contents.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Closes #13559

Details

Provenance
andrewAuthored on Jun 17 2022, 6:44 PM
GitHub <noreply@github.com>Committed on Jun 17 2022, 6:44 PM
Parents
rG10891b37fa8f: libzfs: Prevent overridding of error code
Branches
Unknown
Tags
Unknown