diff options
author | ilovezfs <[email protected]> | 2014-04-29 22:47:14 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-04-30 15:52:01 -0700 |
commit | 78597769b488633c9b61ded8ede0c8790b849b75 (patch) | |
tree | 7ac0b36d56b8bcc5ee422f67ae660db4ae22f4a8 /config | |
parent | 17584980b9ca6fc1aecb520ffc520cd306624854 (diff) |
Fill in mountpoint buffer before using it in errors
zfs_is_mountable() fills in the mountpoint buffer, so, as in
upstream, it needs to have been called before the mountpoint
buffer can be used in error messages.
In particular,
return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED,
dgettext(TEXT_DOMAIN, "cannot mount '%s'"),
mountpoint));
should not come before the call to zfs_is_mountable().
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: ilovezfs <[email protected]>
Closes #2284
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions