svn commit: r342381 - head/sys/ufs/ffs
Konstantin Belousov
kib at FreeBSD.org
Sun Dec 23 18:54:10 UTC 2018
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);
More information about the svn-src-all
mailing list