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:
48de220
)
- uninitialized error code
author
braam
<braam>
Mon, 25 Feb 2002 18:57:03 +0000
(18:57 +0000)
committer
braam
<braam>
Mon, 25 Feb 2002 18:57:03 +0000
(18:57 +0000)
- uninitialized mode of data objects
both fixed
lustre/llite/namei.c
patch
|
blob
|
history
diff --git
a/lustre/llite/namei.c
b/lustre/llite/namei.c
index
4f07f3c
..
f95a8ac
100644
(file)
--- a/
lustre/llite/namei.c
+++ b/
lustre/llite/namei.c
@@
-280,6
+280,9
@@
static int ll_create (struct inode * dir, struct dentry * dentry, int mode)
struct obdo oa;
struct inode * inode;
+ memset(&oa, 0, sizeof(oa));
+ oa.o_valid = OBD_MD_FLMODE;
+ oa.o_mode = S_IFREG | 0600;
err = obd_create(IID(dir), &oa);
if (err) {
EXIT;