summaryrefslogtreecommitdiff
path: root/repo/ceph/31-32bit_fix_tests.patch.noauto
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
commitf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (patch)
tree31fe2a493efcc3ec8721b8ae9943a0f938cd3f4d /repo/ceph/31-32bit_fix_tests.patch.noauto
parente4a392b4e1e547c9569abdd1f08ec51da3dc4562 (diff)
added qemu
Diffstat (limited to 'repo/ceph/31-32bit_fix_tests.patch.noauto')
-rw-r--r--repo/ceph/31-32bit_fix_tests.patch.noauto66
1 files changed, 0 insertions, 66 deletions
diff --git a/repo/ceph/31-32bit_fix_tests.patch.noauto b/repo/ceph/31-32bit_fix_tests.patch.noauto
deleted file mode 100644
index 939c550..0000000
--- a/repo/ceph/31-32bit_fix_tests.patch.noauto
+++ /dev/null
@@ -1,66 +0,0 @@
---- a/src/test/objectstore/test_bdev.cc
-+++ b/src/test/objectstore/test_bdev.cc
-@@ -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 * 6ull;
- 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));
-@@ -313,7 +313,7 @@
- }
-
- TEST(BlueFS, very_large_write2) {
-- // 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_full = 1048576 * 1024 * 6ull;
- uint64_t size = 1048576 * 1024 * 5ull;
- TempBdev bdev{ size_full };