Whamcloud - gitweb
Branch b1_6
authorbwzhou <bwzhou>
Sun, 18 May 2008 18:24:55 +0000 (18:24 +0000)
committerbwzhou <bwzhou>
Sun, 18 May 2008 18:24:55 +0000 (18:24 +0000)
b=13285
r=green, bobijam (libexec)
r=johann, deen (gcc)

1. Use the common libexec convention;
2. Quiet remaining gcc warnings.

lustre/include/obd.h
lustre/lov/lov_qos.c
lustre/scripts/Makefile.am

index d6de0c9..94593cb 100644 (file)
@@ -1113,11 +1113,11 @@ static inline void obd_transno_commit_cb(struct obd_device *obd, __u64 transno,
                                          int error)
 {
         if (error) {
-                CERROR("%s: transno "LPD64" commit error: %d\n",
+                CERROR("%s: transno "LPU64" commit error: %d\n",
                        obd->obd_name, transno, error);
                 return;
         }
-        CDEBUG(D_HA, "%s: transno "LPD64" committed\n",
+        CDEBUG(D_HA, "%s: transno "LPU64" committed\n",
                obd->obd_name, transno);
         if (transno > obd->obd_last_committed) {
                 obd->obd_last_committed = transno;
index cf61023..fe92246 100644 (file)
@@ -944,7 +944,8 @@ int qos_prep_create(struct obd_export *exp, struct lov_request_set *set)
 out_err:
         if (newea && rc)
                 obd_free_memmd(exp, &set->set_oi->oi_md);
-        free_idx_array(idx_arr, idx_cnt);
+        if (idx_arr)
+                free_idx_array(idx_arr, idx_cnt);
         EXIT;
         return rc;
 }
index f0a44a3..031a988 100644 (file)
@@ -15,7 +15,7 @@ EXTRA_DIST = license-status maketags.sh version_tag.pl.in lc_common \
             $(addsuffix .in,$(genscripts)) lc_mon $(sbinscripts) \
             $(bin_SCRIPTS)
 
-scriptlibdir = $(libdir)/@PACKAGE@
+scriptlibdir = @libexecdir@/@PACKAGE@
 scriptlib_DATA = lc_common
 
 CLEANFILES = $(genscripts)