Whamcloud - gitweb
LU-2489 mdc: Restrict access to hsm_nl file
[fs/lustre-release.git] / lustre / mdc / lproc_mdc.c
index b7d0dae..4f25f36 100644 (file)
@@ -1,6 +1,4 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
  * GPL HEADER START
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright (c) 2011, Whamcloud, Inc.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -39,7 +39,6 @@
 #include <linux/vfs.h>
 #include <obd_class.h>
 #include <lprocfs_status.h>
-#include <lustre_log.h>
 
 #ifdef LPROCFS
 
@@ -149,12 +148,22 @@ static struct lprocfs_vars lprocfs_mdc_obd_vars[] = {
         /*{ "filegroups",      lprocfs_rd_filegroups,  0, 0 },*/
         { "mds_server_uuid", lprocfs_rd_server_uuid, 0, 0 },
         { "mds_conn_uuid",   lprocfs_rd_conn_uuid,   0, 0 },
+        /*
+         * FIXME: below proc entry is provided, but not in used, instead
+         * sbi->sb_md_brw_size is used, the per obd variable should be used
+         * when CMD is enabled, and dir pages are managed in MDC layer.
+         * Remember to enable proc write function.
+         */
+        { "max_pages_per_rpc",  lprocfs_obd_rd_max_pages_per_rpc,
+                                /* lprocfs_obd_wr_max_pages_per_rpc */0, 0 },
         { "max_rpcs_in_flight", mdc_rd_max_rpcs_in_flight,
                                 mdc_wr_max_rpcs_in_flight, 0 },
         { "timeouts",        lprocfs_rd_timeouts,    0, 0 },
-        { "import",          lprocfs_rd_import,      0, 0 },
+        { "import",          lprocfs_rd_import,      lprocfs_wr_import, 0 },
         { "state",           lprocfs_rd_state,       0, 0 },
-        { "hsm_nl",          0, mdc_wr_kuc,          0, 0, 0222 },
+       { "hsm_nl",          0, mdc_wr_kuc,          0, 0, 0200 },
+        { "pinger_recov",    lprocfs_rd_pinger_recov,
+                             lprocfs_wr_pinger_recov, 0, 0 },
         { 0 }
 };