From 770c9a33ccb1cdaf0a40edcdbdf62cdfd0bfcd93 Mon Sep 17 00:00:00 2001 From: fanyong Date: Tue, 20 May 2008 02:03:20 +0000 Subject: [PATCH] Branch b_release_1_6_5 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 99edb9d..f0f2981 100644 --- 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) -- 1.8.3.1