From 603f245ea3ab06dc1ca6df79f27d152cbaa4a684 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Wed, 6 Jan 2016 10:24:23 -0500 Subject: [PATCH] librgw: split nfsns bucket and object create blocks Helps to see the respective timings. Signed-off-by: Matt Benjamin --- src/test/librgw_file_nfsns.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/test/librgw_file_nfsns.cc b/src/test/librgw_file_nfsns.cc index 24b9582d78627..7d6dbb3b7054a 100644 --- a/src/test/librgw_file_nfsns.cc +++ b/src/test/librgw_file_nfsns.cc @@ -205,7 +205,7 @@ TEST(LibRGW, ENUMERATE1) { } } -TEST(LibRGW, MARKER1_SETUP) +TEST(LibRGW, MARKER1_SETUP_BUCKET) { /* "large" directory enumeration test. this one deals only with * file objects */ @@ -220,6 +220,17 @@ TEST(LibRGW, MARKER1_SETUP) ret = rgw_mkdir(fs, bucket_fh, marker_dir.c_str(), 755, &st, &marker_fh); ASSERT_EQ(ret, 0); + } +} + +TEST(LibRGW, MARKER1_SETUP_OBJECTS) +{ + /* "large" directory enumeration test. this one deals only with + * file objects */ + + if (do_marker1) { + struct stat st; + int ret; for (int ix = 0; ix < marker_nobjs; ++ix) { std::string object_name("f_"); -- 2.39.5