-int osc_rd_max_pages_per_rpc(char *page, char **start, off_t off, int count,
- int *eof, void *data)
+static int osc_wr_active(struct file *file, const char *buffer,
+ unsigned long count, void *data)
+{
+ struct obd_device *dev = data;
+ int val, rc;
+
+ rc = lprocfs_write_helper(buffer, count, &val);
+ if (rc)
+ return rc;
+ if (val < 0 || val > 1)
+ return -ERANGE;
+
+ LPROCFS_CLIMP_CHECK(dev);
+ /* opposite senses */
+ if (dev->u.cli.cl_import->imp_deactive == val)
+ rc = ptlrpc_set_import_active(dev->u.cli.cl_import, val);
+ else
+ CDEBUG(D_CONFIG, "activate %d: ignoring repeat request\n", val);
+
+ LPROCFS_CLIMP_EXIT(dev);
+ return count;
+}
+
+
+static int osc_rd_max_pages_per_rpc(char *page, char **start, off_t off,
+ int count, int *eof, void *data)