Author: kib
Date: Sun Dec 23 18:54:09 2018
New Revision: 342381
URL: https://svnweb.freebsd.org/changeset/base/342381

Log:
  Allocate v_object for the new snapshot vnode.
  
  The vnode is not opened, so it ends up with the malloced buffers otherwise.
  
  Reported and tested by:       pho
  MFC after:    1 week
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/ufs/ffs/ffs_snapshot.c

Modified: head/sys/ufs/ffs/ffs_snapshot.c
==============================================================================
--- head/sys/ufs/ffs/ffs_snapshot.c     Sun Dec 23 18:52:02 2018        
(r342380)
+++ head/sys/ufs/ffs/ffs_snapshot.c     Sun Dec 23 18:54:09 2018        
(r342381)
@@ -302,6 +302,7 @@ restart:
                return (error);
        }
        vp = nd.ni_vp;
+       vnode_create_vobject(nd.ni_vp, fs->fs_size, td);
        vp->v_vflag |= VV_SYSTEM;
        ip = VTOI(vp);
        devvp = ITODEVVP(ip);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to