Mercurial > illumos > illumos-gate
changeset 3380:c121b2a2bd0e
6510448 zfs_unshare_iscsi() gives bogus error message when libiscsitgt cannot be opened or is missing
author | gw25295 |
---|---|
date | Mon, 08 Jan 2007 13:26:07 -0800 |
parents | ab5e51073e69 |
children | 10dc97418872 |
files | usr/src/lib/libzfs/common/libzfs_mount.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/libzfs/common/libzfs_mount.c Mon Jan 08 13:10:23 2007 -0800 +++ b/usr/src/lib/libzfs/common/libzfs_mount.c Mon Jan 08 13:26:07 2007 -0800 @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -635,6 +635,12 @@ libzfs_handle_t *hdl = zhp->zfs_hdl; /* + * Return if the volume is not shared + */ + if (!zfs_is_shared_iscsi(zhp)) + return (0); + + /* * If this fails with ENODEV it indicates that zvol wasn't shared so * we should return success in that case. */