Recent changes (master)
The following changes since commit a606a802173272002e37be6475802be8c37481d6:
Cast input argument for json_object_add_value_int to long long (2014-06-24 19:31:22 -0600)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 4445856ab659ffa41bdb8f5b81aa00704c50a5c6:
Verify: Tighten header length check in verify_header() (2014-06-26 19:30:16 +0200)
----------------------------------------------------------------
Andreas Gruenbacher (3):
update_condensed_str(): Fix for empty input strings
Verify: Fix and improve verify_header()
Verify: Tighten header length check in verify_header()
Tiziano M��ller (1):
Add configure flags for gfapi and rbd
configure | 8 +++++-- eta.c | 39 ++++++++++-------------------- verify.c | 80 +++++++++++++++++++++++++------------------------------------ 3 files changed, 51 insertions(+), 76 deletions(-)
---
Diff of recent changes:
configure +6 -2
@@ -156,6 +156,10 @@ for opt do ;; --disable-numa) disable_numa="yes" ;; + --disable-rbd) disable_rbd="yes" + ;; + --disable-gfapi) disable_gfapi="yes" + ;; --help) show_help="yes" ;;
@@ -1146,7 +1150,7 @@ int main(int argc, char **argv) return 0; } EOF -if compile_prog "" "-lrbd -lrados" "rbd"; then +if test "$disable_rbd" != "yes" && compile_prog "" "-lrbd -lrados" "rbd"; then LIBS="-lrbd -lrados $LIBS" rbd="yes" fi
@@ -1183,7 +1187,7 @@ int main(int argc, char **argv) return 0; } EOF -if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then +if test "$disable_gfapi" != "yes" && compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then LIBS="-lgfapi -lglusterfs $LIBS" gfapi="yes" fi
eta.c +12 -27
@@ -12,35 +12,20 @@ static char run_str[__THREAD_RUNSTR_SZ(REAL_MAX_JOBS)];static void update_condensed_str (char *run_str,char *run_str_condensed) { -int i, ci, last, nr; -size_t len; - - len =strlen (run_str); -if (!len) -return ; - - last =0 ; - nr =0 ; - ci =0 ; -for (i =0 ; i < len; i++) { -if (!last) { -new: - run_str_condensed[ci] = run_str[i]; - last = run_str[i]; - nr =1 ; - ci++; - }else if (last == run_str[i]) { - nr++; - }else { - ci +=sprintf (&run_str_condensed[ci],"(%u)," , nr); - goto new; +if (*run_str) { +while (*run_str) { +int nr =1 ; + + *run_str_condensed++ = *run_str++; +while (*(run_str -1 ) == *run_str) { + run_str++; + nr++; + } + run_str_condensed +=sprintf (run_str_condensed,"(%u)," , nr); } + run_str_condensed--; } - -if (nr) - ci +=sprintf (&run_str_condensed[ci],"(%u)" , nr); - - run_str_condensed[ci +1 ] ='\0' ; + *run_str_condensed ='\0' ; }/*
verify.c +33 -47
98 lines not on this page · raw message