Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ca741b
)
Fix block leak on truncate - we weren't setting the correct mode on the
author
adilger
<adilger>
Fri, 31 May 2002 21:14:49 +0000
(21:14 +0000)
committer
adilger
<adilger>
Fri, 31 May 2002 21:14:49 +0000
(21:14 +0000)
file and that was causing the truncate to be skipped.
lustre/obdfilter/filter.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
972bfe4
..
019a9e0
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-675,7
+675,7
@@
static int filter_destroy(struct obd_conn *conn, struct obdo *oa)
CERROR("destroying inode with nlink = %d\n", inode->i_nlink);
inode->i_nlink = 1;
}
- inode->i_mode =
010000
;
+ inode->i_mode =
S_IFREG
;
push_ctxt(&saved, &obddev->u.filter.fo_ctxt);
rc = vfs_unlink(dir_dentry->d_inode, object_dentry);