Whamcloud - gitweb
b=22455 remove "lnet." prefix from lctl params display
authorLiuYing <Emoly.Liu@sun.com>
Tue, 18 May 2010 02:48:24 +0000 (10:48 +0800)
committerRobert Read <robert.read@oracle.com>
Wed, 19 May 2010 17:46:47 +0000 (10:46 -0700)
remove "lnet." prefix from lctl params display and change one
"memused" to "lnet_memused".

o=adilger
i=johann
i=emoly.liu
i=rread

libcfs/libcfs/linux/linux-proc.c
lustre/utils/lustre_cfg.c

index 06c7593..4efd8dc 100644 (file)
@@ -426,7 +426,7 @@ static cfs_sysctl_table_t lnet_table[] = {
         },
         {
                 .ctl_name = PSDEV_LNET_MEMUSED,
         },
         {
                 .ctl_name = PSDEV_LNET_MEMUSED,
-                .procname = "memused",
+                .procname = "lnet_memused",
                 .data     = (int *)&libcfs_kmemory.counter,
                 .maxlen   = sizeof(int),
                 .mode     = 0444,
                 .data     = (int *)&libcfs_kmemory.counter,
                 .maxlen   = sizeof(int),
                 .mode     = 0444,
index 6860502..4b527d0 100644 (file)
@@ -570,6 +570,8 @@ static char *display_name(char *filename, int show_type)
 
         if (strncmp(filename, "lustre/", strlen("lustre/")) == 0)
                 filename += strlen("lustre/");
 
         if (strncmp(filename, "lustre/", strlen("lustre/")) == 0)
                 filename += strlen("lustre/");
+        else if (strncmp(filename, "lnet/", strlen("lnet/")) == 0)
+                filename += strlen("lnet/");
 
         /* replace '/' with '.' to match conf_param and sysctl */
         tmp = filename;
 
         /* replace '/' with '.' to match conf_param and sysctl */
         tmp = filename;