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:
da3987b
)
Because we now return an error code from filter_prep() we have to make sure
author
adilger
<adilger>
Wed, 3 Apr 2002 10:02:33 +0000
(10:02 +0000)
committer
adilger
<adilger>
Wed, 3 Apr 2002 10:02:33 +0000
(10:02 +0000)
we return 0 if we made it through OK...
lustre/obdfilter/filter.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
ce7a36a
..
5eb528d
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-89,6
+89,7
@@
static int filter_prep(struct obd_device *obddev)
GOTO(out, rc = PTR_ERR(file));
}
filp_close(file, 0);
+ /* FIXME: this is the same as the _file_ we just created? */
rc = simple_mkdir(current->fs->pwd, rootid, 0755);
file = filp_open("D/status", O_RDWR | O_CREAT, 0700);
@@
-122,6
+123,7
@@
static int filter_prep(struct obd_device *obddev)
obddev->u.filter.fo_lastino = lastino;
filp_close(file, 0);
+ rc = 0;
out:
pop_ctxt(&saved);