Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs close file in a w...



details:   https://anonhg.NetBSD.org/src/rev/4de1346d5fca
branches:  trunk
changeset: 771447:4de1346d5fca
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 21 00:24:24 2011 +0000

description:
close file in a way that it does not trigger an assertion :-)
now zpool create works again.

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 86b2a2abd068 -r 4de1346d5fca external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c   Sun Nov 20 23:37:00 2011 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/spa_config.c   Mon Nov 21 00:24:24 2011 +0000
@@ -179,8 +179,7 @@
                    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);



Home | Main Index | Thread Index | Old Index