From 26cdcfd86360247310c6c24303ac44580f84c1eb Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 13 Sep 2004 16:06:14 +0000 Subject: [PATCH] We have now so many GEOM classes that it is better to just skip unknown classes than exiting. Reviewed by: le OK'ed by: phk --- lib/libdisk/open_disk.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c index 90d1bf706bf9..8a8229b41d47 100644 --- a/lib/libdisk/open_disk.c +++ b/lib/libdisk/open_disk.c @@ -257,20 +257,10 @@ Int_Open_Disk(const char *name, char *conftxt) } } else if (!strcmp(t, "GPT")) i = Add_Chunk(d, off, len, n, ty, 0, 0, 0); - else if (!strcmp(t, "BDE")) - ; /* nothing */ - else if (!strcmp(t, "CCD")) - ; /* nothing */ else if (!strcmp(t, "APPLE")) i = Add_Chunk(d, off, len, n, apple, 0, 0, sn); - else if (!strcmp(t, "STRIPE")) - ; /* nothing */ - else if (strstr(t, "VINUM") != NULL) - ; /* nothing */ - else { - printf("BARF %d\n", __LINE__); - exit(0); - } + else + ; /* Ignore unknown classes. */ } /* PLATFORM POLICY BEGIN ------------------------------------- */ /* We have a chance to do things on a blank disk here */