Fix snapshot creation.

This commit is contained in:
Poul-Henning Kamp 2004-12-08 11:54:06 +00:00
parent 0d74c18651
commit 8f25bad356

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) {