]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
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 661f9b5f97eca7d6a468188c4061f36efcb07527..543437492667d5936feb23bbbc285ef5e6b27837 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)));
                }
        }