Fix snapshot creation.

This commit is contained in:
phk 2004-12-08 11:54:06 +00:00
parent a8ea643607
commit 125513db75

View File

@ -172,7 +172,7 @@ ffs_snapshot(mp, snapfile)
* Create the snapshot file.
*/
restart:
NDINIT(&nd, CREATE, LOCKPARENT | LOCKLEAF, UIO_USERSPACE, snapfile, td);
NDINIT(&nd, CREATE, LOCKPARENT | LOCKLEAF, UIO_SYSSPACE, snapfile, td);
if ((error = namei(&nd)) != 0)
return (error);
if (nd.ni_vp != NULL) {