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 Remove an early t...



details:   https://anonhg.NetBSD.org/src/rev/018c828d42dd
branches:  trunk
changeset: 446230:018c828d42dd
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Nov 28 09:56:09 2018 +0000

description:
Remove an early test for "source and target are equal" from zfs_rename()
that broke BSD semantics.

diffstat:

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

diffs (17 lines):

diff -r b083493bbd12 -r 018c828d42dd external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Wed Nov 28 09:55:36 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Wed Nov 28 09:56:09 2018 +0000
@@ -4191,11 +4191,13 @@
                goto unlockout;
        }
 
+#ifndef __NetBSD__
        /* If source and target are the same file, there is nothing to do. */
        if ((*svpp) == (*tvpp)) {
                error = 0;
                goto unlockout;
        }
+#endif
 
        if (((*svpp)->v_type == VDIR && (*svpp)->v_mountedhere != NULL) ||
            ((*tvpp) != NULL && (*tvpp)->v_type == VDIR &&



Home | Main Index | Thread Index | Old Index