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/b5328872c6d5
branches:  trunk
changeset: 964702:b5328872c6d5
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 3c85600c1c42 -r b5328872c6d5 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