aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_vol_ffs.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-08-09 16:15:24 +0000
committerWarner Losh <imp@FreeBSD.org>2017-08-09 16:15:24 +0000
commit20995eab57202e64360e91d4c3fab4b4f7e7bfd5 (patch)
treedaf10093e8ba9cb16440716aace723772f3a2cce /sys/geom/geom_vol_ffs.c
parent2b2a6eb95e9c91b34acb71e038725c9fe537b8a8 (diff)
downloadsrc-20995eab57202e64360e91d4c3fab4b4f7e7bfd5.tar.gz
src-20995eab57202e64360e91d4c3fab4b4f7e7bfd5.zip
Mark geom classes as deprecated.
geom_bsd, geom_mbr and geom_sunlabel have been obsolete since Marcel Moolenaar's geom_part was in FreeBSD 7. They haven't been in GENERIC since FreeBSD 8. Add warning when used. geom_vol_ffs has been obsolete since ufs support to geom_label was committed in FreeBSD 5. It hasn't been in GENERIC since FreeBSD 5. Add warning when used. geom_fox has been obsolete since gmultipath was committed in FreeBSD 7. (no warning added, since this is a very obscure class). These will all be removed in FreeBSD 12. MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D11935 Note: Classes will be removed after MFC
Notes
Notes: svn path=/head/; revision=322318
Diffstat (limited to 'sys/geom/geom_vol_ffs.c')
-rw-r--r--sys/geom/geom_vol_ffs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/geom/geom_vol_ffs.c b/sys/geom/geom_vol_ffs.c
index 4fa4da599893..81e1e2cff601 100644
--- a/sys/geom/geom_vol_ffs.c
+++ b/sys/geom/geom_vol_ffs.c
@@ -48,6 +48,7 @@ FEATURE(geom_vol, "GEOM support for volume names from UFS superblock");
#define VOL_FFS_CLASS_NAME "VOL_FFS"
static int superblocks[] = SBLOCKSEARCH;
+static int g_vol_ffs_once;
struct g_vol_ffs_softc {
char * vol;
@@ -145,6 +146,12 @@ g_vol_ffs_taste(struct g_class *mp, struct g_provider *pp, int flags)
g_slice_spoiled(cp);
return (NULL);
}
+ if (!g_vol_ffs_once) {
+ g_vol_ffs_once = 1;
+ printf(
+ "WARNING: geom_vol_Ffs (geom %s) is deprecated, "
+ "use glabel instead.\n", gp->name);
+ }
return (gp);
}