diff options
author | phk <phk@FreeBSD.org> | 2004-12-08 11:54:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-08 11:54:06 +0000 |
commit | 125513db7561f48c4ce5c140cea8049d50454ef2 (patch) | |
tree | fb5fb79f542bc4497f33d6e3bb1602d213a44f9a /sys | |
parent | a8ea643607676a47de523cb30cfa06e9bbbd461b (diff) | |
download | FreeBSD-src-125513db7561f48c4ce5c140cea8049d50454ef2.zip FreeBSD-src-125513db7561f48c4ce5c140cea8049d50454ef2.tar.gz |
Fix snapshot creation.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index c137d16..5261289 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -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) { |