Make zvol_remove_link() print a more useful error message

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Richard Yao 2012-04-24 15:13:47 -04:00 committed by Brian Behlendorf
parent d53574e568
commit bc98d6c809
1 changed files with 1 additions and 1 deletions

View 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)));
}
}