diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-12-11 01:03:18 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-12-11 01:03:18 +0000 |
commit | b61f496eb02f1fd5107dc4093c0e53ea5bc61384 (patch) | |
tree | c22c477222dd49c98eccef11fc05adf573810698 /sys/ufs | |
parent | 174f202127eb10e71c2fbefec46bec05d2bdc5f9 (diff) |
Earlier patch broke rename. Disalbed it temporarily as I search for a solution.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index c89d4b7ee0c..625452d69de 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_lookup.c,v 1.8 1997/12/02 17:11:11 csapuntz Exp $ */ +/* $OpenBSD: ufs_lookup.c,v 1.9 1997/12/11 01:03:17 csapuntz Exp $ */ /* $NetBSD: ufs_lookup.c,v 1.7 1996/02/09 22:36:06 christos Exp $ */ /* @@ -888,12 +888,16 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdirbp) */ if (error == 0 && dp->i_endoff && dp->i_endoff < dp->i_ffs_size) { +#if 0 /* This code is breaking rename */ if (tvp != NULL) VOP_UNLOCK(tvp, 0, p); +#endif error = VOP_TRUNCATE(dvp, (off_t)dp->i_endoff, IO_SYNC, cr, p); +#if 0 if (tvp != NULL) vn_lock(tvp, LK_EXCLUSIVE | LK_RETRY, p); +#endif } return (error); } |