mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
Suppress share error on mount
Until code is added to support automatically sharing datasets we should return success instead of failure. This prevents the command line tools from returning a non-zero error code. While a user likely won't notice this, test scripts like zconfig.sh do and correctly fail because of it.
This commit is contained in:
parent
a6695d83b7
commit
07bd86718b
@ -797,8 +797,9 @@ zfs_share_proto(zfs_handle_t *zhp, zfs_share_proto_t *proto)
|
|||||||
dgettext(TEXT_DOMAIN, "cannot share '%s': %s"),
|
dgettext(TEXT_DOMAIN, "cannot share '%s': %s"),
|
||||||
zfs_get_name(zhp), _sa_errorstr != NULL ?
|
zfs_get_name(zhp), _sa_errorstr != NULL ?
|
||||||
_sa_errorstr(ret) : "");
|
_sa_errorstr(ret) : "");
|
||||||
#endif /* HAVE_SHARE */
|
|
||||||
return (-1);
|
return (-1);
|
||||||
|
#endif /* HAVE_SHARE */
|
||||||
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (curr_proto = proto; *curr_proto != PROTO_END; curr_proto++) {
|
for (curr_proto = proto; *curr_proto != PROTO_END; curr_proto++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user