aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/dataset_kstats.h
diff options
context:
space:
mode:
authorAlan Somers <[email protected]>2023-11-07 12:34:50 -0700
committerBrian Behlendorf <[email protected]>2024-01-08 16:11:39 -0800
commitc34fe8dcbcb710081d8927b76bab06dd43c20c8c (patch)
tree2aa555c6927c90abace8d23d7b8b91a7999a7c40 /include/sys/dataset_kstats.h
parent2a59b6bfa96648bc2c8c83eed0e026010e8da864 (diff)
Update the kstat dataset_name when renaming a zvol
Add a dataset_kstats_rename function, and call it when renaming a zvol on FreeBSD and Linux. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alan Somers <[email protected]> Sponsored-by: Axcient Closes #15482 Closes #15486
Diffstat (limited to 'include/sys/dataset_kstats.h')
-rw-r--r--include/sys/dataset_kstats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/dataset_kstats.h b/include/sys/dataset_kstats.h
index 40cf5258a..c81a07f0c 100644
--- a/include/sys/dataset_kstats.h
+++ b/include/sys/dataset_kstats.h
@@ -71,6 +71,7 @@ typedef struct dataset_kstats {
int dataset_kstats_create(dataset_kstats_t *, objset_t *);
void dataset_kstats_destroy(dataset_kstats_t *);
+void dataset_kstats_rename(dataset_kstats_t *dk, const char *);
void dataset_kstats_update_write_kstats(dataset_kstats_t *, int64_t);
void dataset_kstats_update_read_kstats(dataset_kstats_t *, int64_t);