]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_autogen.sh: -e <path> to dump encoded objects to a path
authorSage Weil <sage.weil@dreamhost.com>
Thu, 2 Feb 2012 00:34:00 +0000 (16:34 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 2 Feb 2012 00:34:00 +0000 (16:34 -0800)
Make it easy to build with encode dumping enabled.  This is just a
convenient way to generate a large corpus of encoded objects.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
do_autogen.sh

index 18f1169890e3ce1d73a160db6d109f0fba211392..130df872d133e59dc5cb1a6f9597bfa10a74e9e1 100755 (executable)
@@ -10,6 +10,8 @@ do_autogen.sh: make a ceph build by running autogen, etc.
                                  level 1: -g
                                  level 3: -Wextra
                                  level 4: even more...
+-H                               --with-hadoop
+-e <path>                        dump encoded objects to <path>
 -P                               profiling build
 
 EOF
@@ -24,7 +26,7 @@ debug_level=0
 verbose=0
 profile=0
 HADOOP_FLAGS=
-while getopts  "d:hHPv" flag
+while getopts  "d:e:hHPv" flag
 do
     case $flag in
     d) debug_level=$OPTARG;;
@@ -38,6 +40,8 @@ do
 
     v) verbose=1;;
 
+    e) encode_dump=$OPTARG;;
+
     *)
         echo
         usage
@@ -80,6 +84,11 @@ if [ "${debug_level}" -ge 2000 ]; then
     CXXFLAGS="${CXXFLAGS} -Wold-style-cast"
 fi
 
+if [ -n "${encode_dump}" ]; then
+    CXXFLAGS="${CXXFLAGS} -DENCODE_DUMP=${encode_dump}"
+fi
+
+
 # Warning about unused parameters just leads to a lot of pointless spew when
 # using C++. It doesn't interact well with class inheritance.
 CFLAGS="${CFLAGS} -Wno-unused-parameter"