diff options
Diffstat (limited to 'community/ceph/31-32bit_fix_tests.patch.noauto')
-rw-r--r-- | community/ceph/31-32bit_fix_tests.patch.noauto | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/community/ceph/31-32bit_fix_tests.patch.noauto b/community/ceph/31-32bit_fix_tests.patch.noauto deleted file mode 100644 index d8b5d065c28..00000000000 --- a/community/ceph/31-32bit_fix_tests.patch.noauto +++ /dev/null @@ -1,58 +0,0 @@ -diff -uNr ceph-15.2.4/src/test/objectstore/test_bdev.cc ceph-15.2.4-arm32_fix_tests/src/test/objectstore/test_bdev.cc ---- ceph-15.2.4/src/test/objectstore/test_bdev.cc 2020-07-01 01:10:51.000000000 +0930 -+++ ceph-15.2.4-arm32_fix_tests/src/test/objectstore/test_bdev.cc 2020-11-17 15:40:57.203039097 +1030 -@@ -54,8 +54,8 @@ - BlockDevice::create(g_ceph_context, bdev.path, NULL, NULL, - [](void* handle, void* aio) {}, NULL)); - bufferlist bl; -- // writing a bit less than 4GB -- for (auto i = 0; i < 4000; i++) { -+ // writing a bit less than 1GB -+ for (auto i = 0; i < 1000; i++) { - string s(1048576, 'a' + (i % 28)); - bl.append(s); - } ---- a/src/test/objectstore/test_bluefs.cc -+++ b/src/test/objectstore/test_bluefs.cc -@@ -237,7 +237,7 @@ - } - - TEST(BlueFS, very_large_write) { -- // we'll write a ~5G file, so allocate more than that for the whole fs -+ // we'll write a ~1G file, so allocate more than that for the whole fs - uint64_t size = 1048576 * 1024 * 8ull; - TempBdev bdev{size}; - BlueFS fs(g_ceph_context); -@@ -260,12 +260,12 @@ - BlueFS::FileWriter *h; - ASSERT_EQ(0, fs.mkdir("dir")); - ASSERT_EQ(0, fs.open_for_write("dir", "bigfile", &h, false)); -- for (unsigned i = 0; i < 3*1024*1048576ull / sizeof(buf); ++i) { -+ for (unsigned i = 0; i < 1*1024*1048576ull / sizeof(buf); ++i) { - h->append(buf, sizeof(buf)); - total_written += sizeof(buf); - } - fs.fsync(h); -- for (unsigned i = 0; i < 2*1024*1048576ull / sizeof(buf); ++i) { -+ for (unsigned i = 0; i < 1*1024*1048576ull / sizeof(buf); ++i) { - h->append(buf, sizeof(buf)); - total_written += sizeof(buf); - } -@@ -278,7 +278,7 @@ - bufferlist bl; - BlueFS::FileReaderBuffer readbuf(10485760); - ASSERT_EQ(h->file->fnode.size, total_written); -- for (unsigned i = 0; i < 3*1024*1048576ull / sizeof(buf); ++i) { -+ for (unsigned i = 0; i < 1*1024*1048576ull / sizeof(buf); ++i) { - bl.clear(); - fs.read(h, &readbuf, i * sizeof(buf), sizeof(buf), &bl, NULL); - int r = memcmp(buf, bl.c_str(), sizeof(buf)); -@@ -288,7 +288,7 @@ - } - ASSERT_EQ(0, r); - } -- for (unsigned i = 0; i < 2*1024*1048576ull / sizeof(buf); ++i) { -+ for (unsigned i = 0; i < 1*1024*1048576ull / sizeof(buf); ++i) { - bl.clear(); - fs.read(h, &readbuf, i * sizeof(buf), sizeof(buf), &bl, NULL); - int r = memcmp(buf, bl.c_str(), sizeof(buf)); |