summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdiskmgt/common/entry.c
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2016-10-07 19:54:32 +0300
committerHans Rosenfeld <rosenfeld@grumpf.hope-2000.org>2017-01-11 14:10:14 +0100
commit5f10ef697f250374b7b917e10961c4e02d4e3112 (patch)
tree1c78b923e2536701500d302c98df1d9a66941404 /usr/src/lib/libdiskmgt/common/entry.c
parenta593473611dc9e109c40317ce52161b8cfe015ff (diff)
downloadillumos-joyent-5f10ef697f250374b7b917e10961c4e02d4e3112.tar.gz
6396 remove SVM
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/lib/libdiskmgt/common/entry.c')
-rw-r--r--usr/src/lib/libdiskmgt/common/entry.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/usr/src/lib/libdiskmgt/common/entry.c b/usr/src/lib/libdiskmgt/common/entry.c
index 94b36a55be..e64e61ef65 100644
--- a/usr/src/lib/libdiskmgt/common/entry.c
+++ b/usr/src/lib/libdiskmgt/common/entry.c
@@ -904,17 +904,10 @@ dm_inuse(char *dev_name, char **msg, dm_who_type_t who, int *errp)
* If there is an error, but it isn't a no device found error
* return the error as recorded. Otherwise, with a full
* block name, we might not be able to get the slice
- * associated, and will get an ENODEV error. For example,
- * an SVM metadevice will return a value from getfullblkname()
- * but libdiskmgt won't be able to find this device for
- * statistics gathering. This is expected and we should not
- * report errnoneous errors.
+ * associated, and will get an ENODEV error.
*/
- if (*errp) {
- if (*errp == ENODEV) {
- *errp = 0;
- }
- }
+ if (*errp == ENODEV)
+ *errp = 0;
free(dname);
return (found);
}
@@ -1087,16 +1080,6 @@ dm_get_usage_string(char *what, char *how, char **usage_string)
} else if (strcmp(what, DM_USE_FS) == 0) {
*usage_string = dgettext(TEXT_DOMAIN,
"%s contains a %s filesystem.\n");
- } else if (strcmp(what, DM_USE_SVM) == 0) {
- if (strcmp(how, "mdb") == 0) {
- *usage_string = dgettext(TEXT_DOMAIN,
- "%s contains an SVM %s. Please see "
- "metadb(1M).\n");
- } else {
- *usage_string = dgettext(TEXT_DOMAIN,
- "%s is part of SVM volume %s. "
- "Please see metaclear(1M).\n");
- }
} else if (strcmp(what, DM_USE_VXVM) == 0) {
*usage_string = dgettext(TEXT_DOMAIN,
"%s is part of VxVM volume %s.\n");