Source-Changes-HG archive

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

[src/netbsd-9]: src/external/cddl/osnet/dist/uts/common/fs/zfs Pull up follow...



details:   https://anonhg.NetBSD.org/src/rev/d4b964953d9c
branches:  netbsd-9
changeset: 963622:d4b964953d9c
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Feb 16 12:18:27 2020 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #709):

        external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.57

zfs_netbsd_setattr: ignore size changes on device nodes.

diffstat:

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

diffs (13 lines):

diff -r 6bfabb51358b -r d4b964953d9c external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Sun Feb 16 12:16:28 2020 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Sun Feb 16 12:18:27 2020 +0000
@@ -5553,6 +5553,9 @@
 
        zflags = VTOZ(vp)->z_pflags;
 
+       /* Ignore size changes on device nodes. */
+       if (vp->v_type == VBLK || vp->v_type == VCHR)
+               xvap.xva_vattr.va_mask &= ~AT_SIZE;
        if (vap->va_flags != VNOVAL) {
                int error;
 



Home | Main Index | Thread Index | Old Index