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 Add missing "defi...



details:   https://anonhg.NetBSD.org/src/rev/97c303284503
branches:  trunk
changeset: 453461:97c303284503
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Aug 13 08:03:25 2019 +0000

description:
Add missing "defined(__NetBSD__)" to make "zfs promote" work.

diffstat:

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

diffs (12 lines):

diff -r 7507125fb191 -r 97c303284503 external/cddl/osnet/dist/uts/common/fs/zfs/dsl_dataset.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/dsl_dataset.c  Tue Aug 13 07:20:43 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/dsl_dataset.c  Tue Aug 13 08:03:25 2019 +0000
@@ -2796,7 +2796,7 @@
                ASSERT(!dsl_prop_hascb(ds));
        }
 
-#if defined(__FreeBSD__) && defined(_KERNEL)
+#if (defined(__FreeBSD__) || defined(__NetBSD__)) && defined(_KERNEL)
        mutex_exit(&spa_namespace_lock);
 
        kmem_free(newname, MAXPATHLEN);



Home | Main Index | Thread Index | Old Index