From bc98d6c80944dcd920d1147e6bff2192e886a2f5 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Tue, 24 Apr 2012 15:13:47 -0400 Subject: [PATCH] Make zvol_remove_link() print a more useful error message Signed-off-by: Brian Behlendorf --- lib/libzfs/libzfs_dataset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index 661f9b5f97..5434374926 100644 --- a/lib/libzfs/libzfs_dataset.c +++ b/lib/libzfs/libzfs_dataset.c @@ -3955,7 +3955,7 @@ zvol_remove_link(libzfs_handle_t *hdl, const char *dataset) default: return (zfs_standard_error_fmt(hdl, errno, dgettext(TEXT_DOMAIN, "cannot remove device " - "links for '%s'"), dataset)); + "links for '%s': %s"), dataset, strerror(errno))); } }