Whamcloud - gitweb
b=15625
authorbrian <brian>
Wed, 9 Jul 2008 21:07:19 +0000 (21:07 +0000)
committerbrian <brian>
Wed, 9 Jul 2008 21:07:19 +0000 (21:07 +0000)
i=adilger
i=nathan

Service Tags.

If the service tags package is installed on a Lustre node when a Lustre
target is mounted, a service tag will be generated which can then optionally
be collected by a Registration Client for addition to the Sun asset
inventory system being offered at inventory.sun.com.

lustre/utils/mount_lustre.c

index 859c63e..1875d71 100644 (file)
 #include <sys/mount.h>
 #include <mntent.h>
 #include <getopt.h>
-#include <sys/utsname.h>
 #include "obdctl.h"
 #include <lustre_ver.h>
 #include <glob.h>
 #include <ctype.h>
 #include <limits.h>
+#include <mount_utils.h>
 
 #define MAX_HW_SECTORS_KB_PATH  "queue/max_hw_sectors_kb"
 #define MAX_SECTORS_KB_PATH     "queue/max_sectors_kb"
@@ -49,7 +49,7 @@ int          verbose = 0;
 int          nomtab = 0;
 int          fake = 0;
 int          force = 0;
-static char *progname = NULL;
+char         *progname = NULL;
 
 void usage(FILE *out)
 {
@@ -555,6 +555,8 @@ int main(int argc, char *const argv[])
                                 " (may cause reduced IO performance)",
                                 argv[0], source);
 
+        register_service_tags(usource, source, target);
+
         if (!fake)
                 /* flags and target get to lustre_get_sb, but not
                    lustre_fill_super.  Lustre ignores the flags, but mount