From: Sage Weil Date: Sat, 29 Dec 2012 00:48:05 +0000 (-0800) Subject: test_filejournal: test journaling bl with >IOV_MAX segments X-Git-Tag: v0.57~253^2~2^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c461e7fc1e34fdddd8ff8833693d067451df906b;p=ceph.git test_filejournal: test journaling bl with >IOV_MAX segments Signed-off-by: Sage Weil --- diff --git a/src/test/test_filejournal.cc b/src/test/test_filejournal.cc index c3af26bc3e4a..975233fd22a3 100644 --- a/src/test/test_filejournal.cc +++ b/src/test/test_filejournal.cc @@ -1,5 +1,6 @@ #include #include +#include #include "common/ceph_argparse.h" #include "common/common_init.h" @@ -160,6 +161,43 @@ TEST(TestFileJournal, WriteMany) { j.close(); } +TEST(TestFileJournal, WriteManyVecs) { + fsid.generate_random(); + FileJournal j(fsid, finisher, &sync_cond, path, directio, aio); + ASSERT_EQ(0, j.create()); + j.make_writeable(); + + C_GatherBuilder gb(g_ceph_context, new C_SafeCond(&lock, &cond, &done)); + + bufferlist first; + first.append("small"); + j.submit_entry(1, first, 0, gb.new_sub()); + + bufferlist bl; + for (int i=0; i