Whamcloud - gitweb
b=21275
authornathan <nathan>
Tue, 1 Dec 2009 00:18:04 +0000 (00:18 +0000)
committernathan <nathan>
Tue, 1 Dec 2009 00:18:04 +0000 (00:18 +0000)
i=manoj
rename lreplicate to lustre_rsync since "replicate" means many things

lustre/doc/lustre_rsync.8 [moved from lustre/doc/lreplicate.8 with 85% similarity]
lustre/tests/Makefile.am
lustre/tests/lustre_rsync-test.sh [moved from lustre/tests/lreplicate-test.sh with 86% similarity]
lustre/utils/Makefile.am
lustre/utils/lustre_rsync.c [moved from lustre/utils/lreplicate.c with 98% similarity]
lustre/utils/lustre_rsync.h [moved from lustre/utils/lreplicate.h with 91% similarity]

similarity index 85%
rename from lustre/doc/lreplicate.8
rename to lustre/doc/lustre_rsync.8
index f487241..4d4b4a2 100644 (file)
@@ -1,9 +1,9 @@
-.TH lreplicate 8 "2009 Apr 08" Lustre "Lustre Filesystem replication utility"
+.TH lustre_rsync 8 "2009 Apr 08" Lustre "Lustre Filesystem replication utility"
 .SH NAME
-lreplicate \- Utility to replicate a Lustre Filesystem
+lustre_rsync \- Utility to replicate a Lustre Filesystem
 .SH SYNOPSIS
 .br
-.B lreplicate --source|-s <src> --target|-t <tgt> 
+.B lustre_rsync --source|-s <src> --target|-t <tgt> 
 .br
 .B\t\t\t --mdt|-m <mdt>  [--user|-u <user id>] 
 .br
@@ -13,16 +13,16 @@ lreplicate \- Utility to replicate a Lustre Filesystem
 .br
 
 .br
-.B lreplicate  --statuslog|-l <log>
+.B lustre_rsync  --statuslog|-l <log>
 .br
 
 .br
-.B lreplicate  --statuslog|-l <log> --source|-s <source>
+.B lustre_rsync  --statuslog|-l <log> --source|-s <source>
 .br
 .br
 .B\t\t\t --target|-t <tgt> --mdt|-m <mdt>
 .SH DESCRIPTION
-.B lreplicate
+.B lustre_rsync
 is designed to replicate a Lustre filesystem (source filesystem) to
 another target filesystem (any filesystem type) efficiently by 
 using Lustre MDT changelogs.  A changelog user must be registered
@@ -62,7 +62,7 @@ Mandatory if a valid statuslog created during an previous replication operation
 .B --statuslog=<log>
 .br
 A status log file to which the status of replication is saved. 
-When lreplicate is started, the state from a previous replication
+When lustre_rsync is started, the state from a previous replication
 will be read from here.
 
 If a statuslog from a previous replication operation is specified, the
@@ -104,7 +104,7 @@ cl1
 
 .TP
 Replicate the lustre filesystem /mnt/lustre to /mnt/target.
-$ lreplicate --source=/mnt/lustre --target=/mnt/target \\ 
+$ lustre_rsync --source=/mnt/lustre --target=/mnt/target \\ 
 .br
              --mdt=lustre-MDT0000 --user=cl1 \\
 .br
@@ -126,7 +126,7 @@ Starting changelog record: 0
 .br
 Errors: 0
 .br
-lreplicate took 1 seconds
+lustre_rsync took 1 seconds
 .br
 Changelog records consumed: 22
 .br
@@ -137,7 +137,7 @@ After the filesystem undergoes some changes, replicate the \
 changes. Only the statuslog needs to be specified as it has all the \
 parameters passed earlier.
 .br
-$ lreplicate --statuslog replicate.log --verbose
+$ lustre_rsync --statuslog replicate.log --verbose
 .br
 Replicating Lustre filesystem: lustre
 .br
@@ -155,14 +155,14 @@ Starting changelog record: 22
 .br
 Errors: 0
 .br
-lreplicate took 2 seconds
+lustre_rsync took 2 seconds
 .br
 Changelog records consumed: 42
 .br
 
 .TP
 To replicate the lustre filesystem /mnt/lustre to /mnt/target1 and /mnt/target2.
-$ lreplicate --source=/mnt/lustre \\ 
+$ lustre_rsync --source=/mnt/lustre \\ 
 .br
              --target=/mnt/target1 --target=/mnt/target2 \\ 
 .br
@@ -173,7 +173,7 @@ $ lreplicate --source=/mnt/lustre \\
 
 
 .SH AUTHOR
-The lreplicate command is part of the Lustre filesystem. Contact
+The lustre_rsync command is part of the Lustre filesystem. Contact
 http://www.lustre.org/
 
 .SH SEE ALSO
index 1852609..b92e942 100644 (file)
@@ -23,7 +23,7 @@ noinst_SCRIPTS += sanity-sec.sh sanity-gss.sh krb5_login.sh setup_kerberos.sh
 noinst_SCRIPTS += recovery-mds-scale.sh run_dd.sh run_tar.sh run_iozone.sh
 noinst_SCRIPTS += run_dbench.sh run_IOR.sh recovery-double-scale.sh
 noinst_SCRIPTS += recovery-random-scale.sh parallel-scale.sh metadata-updates.sh
-noinst_SCRIPTS += lreplicate-test.sh ost-pools.sh rpc.sh
+noinst_SCRIPTS += lustre_rsync-test.sh ost-pools.sh rpc.sh
 nobase_noinst_SCRIPTS = cfg/local.sh
 nobase_noinst_SCRIPTS += acl/make-tree acl/run cfg/ncli.sh
 nobase_noinst_SCRIPTS += racer/dir_create.sh racer/file_create.sh racer/file_list.sh
similarity index 86%
rename from lustre/tests/lreplicate-test.sh
rename to lustre/tests/lustre_rsync-test.sh
index 563839d..bac65a8 100644 (file)
@@ -10,7 +10,7 @@ SRCDIR=`dirname $0`
 export PATH=$PWD/$SRCDIR:$SRCDIR:$PWD/$SRCDIR/../utils:$PATH:/sbin
 
 ONLY=${ONLY:-"$*"}
-ALWAYS_EXCEPT="$LREPLICATE_EXCEPT 5a 5b"
+ALWAYS_EXCEPT="$LRSYNC_EXCEPT 5a 5b"
 # bug number for skipped test: -  20878
 # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
 
@@ -20,7 +20,7 @@ ALWAYS_EXCEPT="$LREPLICATE_EXCEPT 5a 5b"
 KILL=/bin/kill
 
 TMP=${TMP:-/tmp}
-LREPL_LOG=$TMP/lreplicate.log
+LREPL_LOG=$TMP/lustre_rsync.log
 ORIG_PWD=${PWD}
 
 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
@@ -41,9 +41,9 @@ assert_DIR
 
 build_test_filter
 
-export LREPLICATE=${LREPLICATE:-"$LUSTRE/utils/lreplicate"}
-[ ! -f "$LREPLICATE" ] && export LREPLICATE=$(which lreplicate)
-export LREPLICATE="$LREPLICATE -v" # -a
+export LRSYNC=${LRSYNC:-"$LUSTRE/utils/lustre_rsync"}
+[ ! -f "$LRSYNC" ] && export LRSYNC=$(which lustre_rsync)
+export LRSYNC="$LRSYNC -v" # -a
 
 # control the time of tests
 DBENCH_TIME=${DBENCH_TIME:-60}  # No of seconds to run dbench
@@ -62,9 +62,9 @@ init_changelog() {
 }
 
 init_src() {
-    rm -rf $TGT/$tdir $TGT/d*.lreplicate-test 2> /dev/null
-    rm -rf $TGT2/$tdir $TGT2/d*.lreplicate-test 2> /dev/null
-    rm -rf ${DIR}/$tdir $DIR/d*.lreplicate-test ${DIR}/tgt 2> /dev/null
+    rm -rf $TGT/$tdir $TGT/d*.lustre_rsync-test 2> /dev/null
+    rm -rf $TGT2/$tdir $TGT2/d*.lustre_rsync-test 2> /dev/null
+    rm -rf ${DIR}/$tdir $DIR/d*.lustre_rsync-test ${DIR}/tgt 2> /dev/null
     rm -f $LREPL_LOG
     mkdir -p $TGT
     mkdir -p $TGT2
@@ -144,7 +144,7 @@ test_1() {
 
     # Replicate
     echo "Replication #1"
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
 
     # Set attributes
     chmod 000 $DIR/$tdir/d2/file3
@@ -157,7 +157,7 @@ test_1() {
     fi
 
     echo "Replication #2"
-    $LREPLICATE -l $LREPL_LOG
+    $LRSYNC -l $LREPL_LOG
 
     if [ "$xattr" == "yes" ]; then
        local xval1=$(getfattr -n user.foo --absolute-names --only-values \
@@ -200,7 +200,7 @@ test_2a() {
     sh rundbench -C -D $DIR/$tdir 2 -t $DBENCH_TIME || error "dbench failed!"
 
     # Replicate the changes to $TGT
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
 
     # Use diff to compare the source and the destination
     check_diff $DIR/$tdir $TGT/$tdir
@@ -230,7 +230,7 @@ test_2b() {
     $KILL -SIGSTOP $child_pid
 
     echo Starting replication
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir
 
     echo Resuming dbench
@@ -241,7 +241,7 @@ test_2b() {
     $KILL -SIGSTOP $child_pid
 
     echo Starting replication
-    $LREPLICATE -l $LREPL_LOG
+    $LRSYNC -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir
 
     echo "Wait for dbench to finish"
@@ -250,7 +250,7 @@ test_2b() {
 
     # Replicate the changes to $TGT
     echo Starting replication
-    $LREPLICATE -l $LREPL_LOG
+    $LRSYNC -l $LREPL_LOG
 
     check_diff $DIR/$tdir $TGT/$tdir
     check_diff $DIR/$tdir $TGT2/$tdir
@@ -275,8 +275,8 @@ test_2c() {
     local quit=0
     while [ $quit -le 1 ];
     do
-        echo "Running lreplicate"
-        $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m ${mds1_svc} -u $CL_USER -l $LREPL_LOG
+        echo "Running lustre_rsync"
+        $LRSYNC -s $DIR -t $TGT -t $TGT2 -m ${mds1_svc} -u $CL_USER -l $LREPL_LOG
         sleep 5
         pgrep dbench
         if [ $? -ne 0 ]; then
@@ -306,7 +306,7 @@ test_3a() {
     createmany -o $DIR/$tdir/$tfile $numfiles || error "createmany failed!"
 
     # Replicate the changes to $TGT
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir   
     check_diff $DIR/$tdir $TGT2/$tdir
 
@@ -330,7 +330,7 @@ test_3b() {
     writemany -q -a $DIR/$tdir/$tfile $time $threads || error "writemany failed!"
 
     # Replicate the changes to $TGT
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
 
     check_diff $DIR/$tdir $TGT/$tdir   
     check_diff $DIR/$tdir $TGT2/$tdir
@@ -354,7 +354,7 @@ test_3c() {
     unlinkmany $DIR/$tdir/$tfile $numfiles || error "unlinkmany failed!"
 
     # Replicate the changes to $TGT
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0  -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0  -u $CL_USER -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir   
     check_diff $DIR/$tdir $TGT2/$tdir
 
@@ -385,7 +385,7 @@ test_4() {
     $KILL -SIGSTOP $child_pid
 
     # Replicate the changes to $TGT
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0  -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0  -u $CL_USER -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir
     check_diff $DIR/$tdir $TGT2/$tdir
 
@@ -406,7 +406,7 @@ test_4() {
       sleep 1;
     done
 
-    $LREPLICATE -l $LREPL_LOG
+    $LRSYNC -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir
     check_diff $DIR/$tdir $TGT2/$tdir
 
@@ -416,7 +416,7 @@ test_4() {
 }
 run_test 4 "Replicate files created by iozone"
 
-# Test 5a - Stop / start lreplicate
+# Test 5a - Stop / start lustre_rsync
 test_5a() {
     [ "$SLOW" = "no" ] && skip "Skipping slow test" && return
 
@@ -429,12 +429,12 @@ test_5a() {
 
     # Replicate the changes to $TGT
     
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG &
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG &
     local child_pid=$!
     sleep 30
     $KILL -SIGHUP $child_pid
     wait
-    $LREPLICATE -l $LREPL_LOG
+    $LRSYNC -l $LREPL_LOG
 
     check_diff $DIR/$tdir $TGT/$tdir   
     check_diff $DIR/$tdir $TGT2/$tdir
@@ -443,9 +443,9 @@ test_5a() {
     cleanup_src_tgt
     return 0
 }
-run_test 5a "Stop / start lreplicate"
+run_test 5a "Stop / start lustre_rsync"
 
-# Test 5b - Kill / restart lreplicate
+# Test 5b - Kill / restart lustre_rsync
 test_5b() {
     [ "$SLOW" = "no" ] && skip "Skipping slow test" && return
 
@@ -458,12 +458,12 @@ test_5b() {
 
     # Replicate the changes to $TGT
     
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG &
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG &
     local child_pid=$!
     sleep 30
     $KILL -SIGKILL $child_pid
     wait
-    $LREPLICATE -l $LREPL_LOG
+    $LRSYNC -l $LREPL_LOG
 
     check_diff $DIR/$tdir $TGT/$tdir   
     check_diff $DIR/$tdir $TGT2/$tdir
@@ -472,9 +472,9 @@ test_5b() {
     cleanup_src_tgt
     return 0
 }
-run_test 5b "Kill / restart lreplicate"
+run_test 5b "Kill / restart lustre_rsync"
 
-# Test 6 - lreplicate large no of hard links
+# Test 6 - lustre_rsync large no of hard links
 test_6() {
     init_src
     init_changelog
@@ -490,7 +490,7 @@ test_6() {
     done
 
     # Replicate the changes to $TGT
-    $LREPLICATE -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG
     check_diff $DIR/$tdir $TGT/$tdir
     check_diff $DIR/$tdir $TGT2/$tdir
 
@@ -504,9 +504,9 @@ test_6() {
     cleanup_src_tgt
     return 0
 }
-run_test 6 "lreplicate large no of hard links"
+run_test 6 "lustre_rsync large no of hard links"
 
-# Test 7 - lreplicate stripesize
+# Test 7 - lustre_rsync stripesize
 test_7() {
     init_src
     init_changelog
@@ -518,11 +518,11 @@ test_7() {
 
     # To simulate replication to another lustre filesystem, replicate
     # the changes to $DIR/tgt. We can't turn off the changelogs
-    # while we are registered, so lreplicate better not try to 
+    # while we are registered, so lustre_rsync better not try to 
     # replicate the replication steps.  It seems ok :)
     mkdir $DIR/tgt
 
-    $LREPLICATE -s $DIR -t $DIR/tgt -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $DIR/tgt -m $MDT0 -u $CL_USER -l $LREPL_LOG
     check_diff ${DIR}/$tdir $DIR/tgt/$tdir
 
     local i=0
@@ -538,7 +538,7 @@ test_7() {
     cleanup_src_tgt
     return 0
 }
-run_test 7 "lreplicate stripesize"
+run_test 7 "lustre_rsync stripesize"
 
 # Test 8 - Replicate multiple file/directory moves
 test_8() {
@@ -561,7 +561,7 @@ test_8() {
            mv $DIR/$tdir/d$i $DIR/$tdir/d0$i
     done
 
-    $LREPLICATE -s $DIR -t $TGT -m $MDT0 -u $CL_USER -l $LREPL_LOG
+    $LRSYNC -s $DIR -t $TGT -m $MDT0 -u $CL_USER -l $LREPL_LOG
 
     check_diff ${DIR}/$tdir $TGT/$tdir
 
index 68ebd6c..e178f28 100644 (file)
@@ -21,7 +21,7 @@ EXTRA_PROGRAMS = wirecheck
 rootsbin_PROGRAMS = mount.lustre
 sbin_PROGRAMS = mkfs.lustre tunefs.lustre lctl wiretest \
        l_getidentity llverfs llverdev \
-       llog_reader lr_reader lshowmount lreplicate \
+       llog_reader lr_reader lshowmount lustre_rsync \
        ll_recover_lost_found_objs ltrack_stats
 if LIBPTHREAD
 sbin_PROGRAMS += loadgen
@@ -45,9 +45,9 @@ loadgen_SOURCES = loadgen.c lustre_cfg.c obd.c
 loadgen_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
 loadgen_DEPENDENCIES := $(LIBPTLCTL)
 
-lreplicate_SOURCES = lreplicate.c obd.c lustre_cfg.c lreplicate.h
-lreplicate_LDADD :=  $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
-lreplicate_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
+lustre_rsync_SOURCES = lustre_rsync.c obd.c lustre_cfg.c lustre_rsync.h
+lustre_rsync_LDADD :=  $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
+lustre_rsync_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
 
 ll_recover_lost_found_objs_SOURCES = ll_recover_lost_found_objs.c
 ll_recover_lost_found_objs_LDADD := $(LIBPTLCTL)
similarity index 98%
rename from lustre/utils/lreplicate.c
rename to lustre/utils/lustre_rsync.c
index f29dc73..5ef3297 100644 (file)
  * This file is part of Lustre, http://www.lustre.org/
  * Lustre is a trademark of Sun Microsystems, Inc.
  *
- * lustre/utils/lreplicate.c
+ * lustre/utils/lustre_rsync.c
  *
  * Author: Kalpak Shah <Kalpak.Shah@Sun.COM>
  * Author: Manoj Joseph <Manoj.Joseph@Sun.COM>
  */
 
 /*
- * - lreplicate is a tool for replicating a lustre filesystem.
+ * - lustre_rsync is a tool for replicating a lustre filesystem.
  *
  * - The source-fs is a live lustre filesystem. It is not a
  * snapshot. It is mounted and undergoing changes
@@ -51,7 +51,7 @@
  * - There is a changelog of all metadata operations that happened on
  * the filesystem since the 'sync point'.
  *
- * - lreplicate replicates all the operations saved in the changelog
+ * - lustre_rsync replicates all the operations saved in the changelog
  * on to the target filesystem to make it identical to the source.
  *
  * To facilitate replication, the lustre filesystem provides
@@ -67,7 +67,7 @@
  * With just this information, it is not alwasy possible to determine
  * the file paths for each operation. For instance, if pfid does not
  * exist on the source-fs (due to a subsequent deletion), its path
- * cannot be queried. In such cases, lreplicate keeps the files in a
+ * cannot be queried. In such cases, lustre_rsync keeps the files in a
  * special directory ("/.lustrerepl"). Once all the operations in a
  * changelog are replayed, all the files in this special directory
  * will get moved to the location as in the source-fs.
 #include <libcfs/libcfsutil.h>
 #include <lustre/liblustreapi.h>
 #include <lustre/lustre_idl.h>
-#include "lreplicate.h"
+#include "lustre_rsync.h"
 
 #define REPLICATE_STATUS_VER 1
 #define CLEAR_INTERVAL 100
@@ -174,7 +174,7 @@ struct lr_parent_child_list {
         struct lr_parent_child_list *pc_next;
 };
 
-struct lreplicate_status *status;
+struct lustre_rsync_status *status;
 char *statuslog;  /* Name of the status log file */
 int logbackedup;
 int noxattr;    /* Flag to turn off replicating xattrs */
@@ -217,11 +217,11 @@ struct option long_opts[] = {
 /* Command line usage */
 void lr_usage()
 {
-        fprintf(stderr, "\tlreplicate -s <lustre_root_path> -t <target_path> "
+        fprintf(stderr, "\tlustre_rsync -s <lustre_root_path> -t <target_path> "
                 "-m <mdt> -r <user id> -l <status log>\n"
-                "lreplicate can also pick up parameters from a "
+                "lustre_rsync can also pick up parameters from a "
                 "status log created earlier.\n"
-                "\tlreplicate -l <log_file>\n"
+                "\tlustre_rsync -l <log_file>\n"
                 "options:\n"
                 "\t--xattr <yes|no> replicate EAs\n"
                 "\t--abort-on-err   abort at first err\n"
@@ -1069,7 +1069,7 @@ int lr_parse_line(void *priv, struct lr_info *info)
 /* Initialize the replication parameters */
 int lr_init_status()
 {
-        size_t size = sizeof(struct lreplicate_status) + PATH_MAX;
+        size_t size = sizeof(struct lustre_rsync_status) + PATH_MAX;
 
         if (status != NULL)
                 return 0;
@@ -1145,10 +1145,10 @@ int lr_read_log()
 {
         struct lr_parent_child_list *tmp;
         struct lr_parent_child_log rec;
-        struct lreplicate_status *s;
+        struct lustre_rsync_status *s;
         int fd = -1;
         size_t size;
-        size_t read_size = sizeof(struct lreplicate_status) + PATH_MAX;
+        size_t read_size = sizeof(struct lustre_rsync_status) + PATH_MAX;
         int rc = 0;
 
         if (statuslog == NULL)
@@ -1464,7 +1464,7 @@ int lr_replicate()
         lr_clear_cl(info, 1);
 
         if (verbose) {
-                printf("lreplicate took %ld seconds\n", time(NULL) - start);
+                printf("lustre_rsync took %ld seconds\n", time(NULL) - start);
                 printf("Changelog records consumed: %lld\n", rec_count);
         }
 
@@ -1476,7 +1476,7 @@ termination_handler (int signum)
 {
         /* Set a flag for the replicator to gracefully shutdown */
         quit = 1;
-        printf("lreplicate halting.\n");
+        printf("lustre_rsync halting.\n");
 }
 
 int main(int argc, char *argv[])
@@ -1510,7 +1510,7 @@ int main(int argc, char *argv[])
                                    ignored. */
                                 status->ls_num_targets = numtargets;
                         }
-                        newsize = sizeof (struct lreplicate_status) +
+                        newsize = sizeof (struct lustre_rsync_status) +
                                 (status->ls_num_targets * PATH_MAX);
                         if (status->ls_size != newsize) {
                                 status->ls_size = newsize;
similarity index 91%
rename from lustre/utils/lreplicate.h
rename to lustre/utils/lustre_rsync.h
index c2623c6..a5ae267 100644 (file)
  * This file is part of Lustre, http://www.lustre.org/
  * Lustre is a trademark of Sun Microsystems, Inc.
  *
- * lustre/include/lustre/lreplicate.h
+ * lustre/include/lustre/lustre_rsync.h
  *
  */
 
-#ifndef _LREPLICATE_H_
-#define _LREPLICATE_H_
+#ifndef _LUSTRE_RSYNC_H_
+#define _LUSTRE_RSYNC_H_
 
 #define LR_NAME_MAXLEN 64
 #define LR_FID_STR_LEN 128
 
-/* Structure used by lreplicate. On-disk structures stored in a log
+/* Structure used by lustre_rsync. On-disk structures stored in a log
  * file. This is used to determine the next start record and other
  * parameters. */
 
-struct lreplicate_status {
+struct lustre_rsync_status {
         __u32   ls_version;           /* Version of the log entry */
         __u32   ls_size;              /* Size of the log entry */
         __u64   ls_last_recno;        /* Last replicated record no. */
@@ -65,4 +65,4 @@ struct lr_parent_child_log {
         char pcl_name[PATH_MAX];
 };
 
-#endif /* _LREPLICATE_H_ */
+#endif /* _LUSTRE_RSYNC_H_ */