From 6a2b307489be038010edc54e2838076175491e27 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 21 Nov 2011 00:24:24 +0000 Subject: [PATCH] close file in a way that it does not trigger an assertion :-) now zpool create works again. --- external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c b/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c index 039374925570..662715bf66de 100644 --- a/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c +++ b/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c @@ -179,8 +179,7 @@ spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl) VOP_FSYNC(vp, FSYNC, kcred, NULL) == 0) { (void) vn_rename(temp, dp->scd_path, UIO_SYSSPACE); } - (void) VOP_CLOSE(vp, oflags, 1, 0, kcred, NULL); - VN_RELE(vp); + vn_close(vp, FWRITE, kcred); } (void) vn_remove(temp, UIO_SYSSPACE, RMFILE);