Merge branch 'master' into gfio
authorJens Axboe <axboe@kernel.dk>
Mon, 4 Mar 2013 11:27:07 +0000 (12:27 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Mar 2013 11:27:07 +0000 (12:27 +0100)
Conflicts:
init.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
1  2 
HOWTO
Makefile
configure
debug.h
engines/net.c
eta.c
filesetup.c
fio.h
init.c
memory.c
server.c

diff --cc HOWTO
Simple merge
diff --cc Makefile
Simple merge
diff --cc configure
+++ b/configure
  if test "$tcp_nodelay" = "yes" ; then
    output_sym "CONFIG_TCP_NODELAY"
  fi
+ if test "$rlimit_memlock" = "yes" ; then
+   output_sym "CONFIG_RLIMIT_MEMLOCK"
+ fi
  
  echo "LIBS+=$LIBS" >> $config_host_mak
 +echo "CFLAGS+=$CFLAGS" >> $config_host_mak
  echo "CC=$cc" >> $config_host_mak
  echo "EXTFLAGS=$EXTFLAGS $CFLAGS" >> $config_host_mak
diff --cc debug.h
Simple merge
diff --cc engines/net.c
Simple merge
diff --cc eta.c
--- 1/eta.c
--- 2/eta.c
+++ b/eta.c
@@@ -439,12 -440,17 +440,17 @@@ void display_thread_status(struct jobs_
                eta_to_str(eta_str, je->eta_sec);
        }
  
+       if (eta_new_line_pending) {
+               eta_new_line_pending = 0;
+               p += sprintf(p, "\n");
+       }
        p += sprintf(p, "Jobs: %d (f=%d)", je->nr_running, je->files_open);
 -      if (je->m_rate || je->t_rate) {
 +      if (je->m_rate[0] || je->m_rate[1] || je->t_rate[0] || je->t_rate[1]) {
                char *tr, *mr;
  
 -              mr = num2str(je->m_rate, 4, 0, je->is_pow2);
 -              tr = num2str(je->t_rate, 4, 0, je->is_pow2);
 +              mr = num2str(je->m_rate[0] + je->m_rate[1], 4, 0, je->is_pow2);
 +              tr = num2str(je->t_rate[0] + je->t_rate[1], 4, 0, je->is_pow2);
                p += sprintf(p, ", CR=%s/%s KB/s", tr, mr);
                free(tr);
                free(mr);
diff --cc filesetup.c
Simple merge
diff --cc fio.h
Simple merge
diff --cc init.c
Simple merge
diff --cc memory.c
+++ b/memory.c
@@@ -171,12 -173,13 +171,13 @@@ static int alloc_mem_mmap(struct thread
  
  static void free_mem_mmap(struct thread_data *td, size_t total_mem)
  {
-       dprint(FD_MEM, "munmap %u %p\n", total_mem, td->orig_buffer);
+       dprint(FD_MEM, "munmap %llu %p\n", (unsigned long long) total_mem,
+                                               td->orig_buffer);
        munmap(td->orig_buffer, td->orig_buffer_size);
 -      if (td->mmapfile) {
 +      if (td->o.mmapfile) {
                close(td->mmapfd);
 -              unlink(td->mmapfile);
 -              free(td->mmapfile);
 +              unlink(td->o.mmapfile);
 +              free(td->o.mmapfile);
        }
  }
  
diff --cc server.c
Simple merge