Make zvol_remove_link() print a more useful error message
authorRichard Yao <ryao@cs.stonybrook.edu>
Tue, 24 Apr 2012 19:13:47 +0000 (15:13 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Jun 2012 23:27:19 +0000 (16:27 -0700)
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
lib/libzfs/libzfs_dataset.c

index 661f9b5..5434374 100644 (file)
@@ -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)));
                }
        }