git: eefd3fe08d3d - stable/13 - gvinum: Emit deprecation notice upon drive tasting
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Feb 2025 13:44:01 UTC
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=eefd3fe08d3d0d95670021d7dedd33ae5ed836c0
commit eefd3fe08d3d0d95670021d7dedd33ae5ed836c0
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-12-12 21:07:26 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-02-04 13:36:37 +0000
gvinum: Emit deprecation notice upon drive tasting
Reviewed by: phk, jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38607
(cherry picked from commit 127b443124d1e720b246ad381648c436c3d240de)
(cherry picked from commit 22d06df419e0fdf7670e96d4ba88e33933cab6da)
---
sys/geom/vinum/geom_vinum_events.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sys/geom/vinum/geom_vinum_events.c b/sys/geom/vinum/geom_vinum_events.c
index fa7c1710c3d9..ec24fbff8a28 100644
--- a/sys/geom/vinum/geom_vinum_events.c
+++ b/sys/geom/vinum/geom_vinum_events.c
@@ -40,6 +40,8 @@
#include <geom/vinum/geom_vinum_var.h>
#include <geom/vinum/geom_vinum.h>
+static bool deprecation_printed;
+
void
gv_post_event(struct gv_softc *sc, int event, void *arg1, void *arg2,
intmax_t arg3, intmax_t arg4)
@@ -180,6 +182,13 @@ gv_drive_tasted(struct gv_softc *sc, struct g_provider *pp)
gv_setup_objects(sc);
gv_set_drive_state(d, GV_DRIVE_UP, 0);
+ /* Emit deprecation notice. */
+ if (!deprecation_printed) {
+ gone_in(15, "gvinum volume manager");
+ deprecation_printed = true;
+ }
+ G_VINUM_DEBUG(1, "drive '%s' relies on deprecated gvinum", d->name);
+
return;
failed: