Skip to content

Instantly share code, notes, and snippets.

@cupnes
cupnes / ceph-code-walkthroughs-osd-read-lease.md
Last active February 16, 2023 06:55
Ceph Code Walkthroughs - OSD Read Lease
@cupnes
cupnes / rgw_bucket.cc.diff
Created August 19, 2021 08:37
radosgw-admin bucket check時に十分なログを出すようにソースコードを改修
diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc
index 50b4d9e4132..37335409197 100644
--- a/src/rgw/rgw_bucket.cc
+++ b/src/rgw/rgw_bucket.cc
@@ -504,8 +504,12 @@ int rgw_remove_bucket_bypass_gc(rgw::sal::RGWRadosStore *store, rgw_bucket& buck
static void set_err_msg(std::string *sink, std::string msg)
{
- if (sink && !msg.empty())
+ if (msg.empty())
➜ seven yuakernel make
gcc -Wall -Wextra -nostdinc -nostdlib -fno-builtin -fno-common -Iinclude -c -o main.o main.c
gcc -Wall -Wextra -nostdinc -nostdlib -fno-builtin -fno-common -Iinclude -c -o syscall.o syscall.c
syscall.c: In function ‘do_syscall_interrupt’:
syscall.c:164:3: warning: implicit declaration of function ‘nic_rx_enable’ [-Wimplicit-function-declaration]
nic_rx_enable();
^
gcc -Wall -Wextra -nostdinc -nostdlib -fno-builtin -fno-common -Iinclude -c -o fbcon.o fbcon.c
gcc -Wall -Wextra -nostdinc -nostdlib -fno-builtin -fno-common -Iinclude -c -o fb.o fb.c
gcc -Wall -Wextra -nostdinc -nostdlib -fno-builtin -fno-common -Iinclude -c -o font.o font.c
@cupnes
cupnes / mbr_tester.patch
Created September 23, 2018 11:38
mbr_tester patches
From 89350acb833644b7ab785a9a67cdccdb737f3767 Mon Sep 17 00:00:00 2001
From: Yuma Ohgami <yuma@ohgami.jp>
Date: Sun, 23 Sep 2018 12:25:20 +0900
Subject: [PATCH] change to mbr_tester.
---
Makefile | 8 +-
devices/x86/bios_debug.c | 2 +-
devices/x86/vga/viewer.c | 332 +++--------------------------------------------
log.c | 3 +-
From 96fa9f46cb8cfae504381ae428ee2d897aba66fd Mon Sep 17 00:00:00 2001
From: Yuma Ohgami <yuma@ohgami.jp>
Date: Sat, 16 Sep 2017 00:26:08 +0900
Subject: [PATCH] fix compile error due to Linux's d62e26b and 74d4699 commits
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
2017/09/16現在(4.14のmerge window)、Linus treeのmasterでwalb-driverを
ビルドしようとするとコンパイルエラーに陥る。