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
(from parent 1:
4ebaed2
)
Branch b1_6
author
fanyong
<fanyong>
Tue, 20 May 2008 02:05:15 +0000
(
02:05
+0000)
committer
fanyong
<fanyong>
Tue, 20 May 2008 02:05:15 +0000
(
02:05
+0000)
b=15828
i=adilger
i=umka
return "-EIO" when write to read only proc interface which "write_proc" is NULL.
lustre/obdclass/lprocfs_status.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/lprocfs_status.c
b/lustre/obdclass/lprocfs_status.c
index
bd26294
..
9615614
100644
(file)
--- a/
lustre/obdclass/lprocfs_status.c
+++ b/
lustre/obdclass/lprocfs_status.c
@@
-172,7
+172,7
@@
out:
static ssize_t lprocfs_fops_write(struct file *f, const char __user *buf, size_t size, loff_t *ppos)
{
struct proc_dir_entry *dp = PDE(f->f_dentry->d_inode);
- int rc =
0
;
+ int rc =
-EIO
;
LPROCFS_ENTRY();
if (!dp->deleted && dp->write_proc)