This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Hoge(n: Int) { | |
def run: Route = { | |
complete(StatusCodes.OK) | |
} | |
} | |
def hoge: Route = { | |
pass { | |
Hoge(1).run | |
// complete(StatusCodes.OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pwrite(4, "XAGI\0\0\0\1\0\0\0\4\0\4\200\0\0\0\0\0\0\0\0\3\0\0\0\1\0\0\0\0"..., 512, 4831839232) = 512 | |
pwrite(4, "XFSB\0\0\20\0\0\0\0\0\0H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512, 4831838208) = 512 | |
pwrite(4, "IABT\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 3623890944) = 4096 | |
pwrite(4, "XAGI\0\0\0\1\0\0\0\3\0\4\200\0\0\0\0\0\0\0\0\3\0\0\0\1\0\0\0\0"..., 512, 3623879680) = 512 | |
pwrite(4, "XFSB\0\0\20\0\0\0\0\0\0H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512, 3623878656) = 512 | |
pwrite(4, "IABT\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 2415931392) = 4096 | |
pwrite(4, "XAGI\0\0\0\1\0\0\0\2\0\4\200\0\0\0\0\0\0\0\0\3\0\0\0\1\0\0\0\0"..., 512, 2415920128) = 512 | |
pwrite(4, "XFSB\0\0\20\0\0\0\0\0\0H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512, 2415919104) = 512 | |
pwrite(4, "IABT\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 1207971840) = 4096 | |
pwrite(4, "XAGI\0\0\0\1\0\0\0\1\0\4\200\0\0\0\0\0\0\0\0\3\0\0\0\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/md/dm-writeboost-daemon.c b/drivers/md/dm-writeboost-daemon.c | |
index 0136baa..f1e4574 100644 | |
--- a/drivers/md/dm-writeboost-daemon.c | |
+++ b/drivers/md/dm-writeboost-daemon.c | |
@@ -255,24 +255,25 @@ static void add_migrate_io(struct wb_device *wb, struct migrate_io *mio) | |
rb_insert_color(&mio->rb_node, &wb->migrate_tree); | |
} | |
-static void prepare_migrate_ios(struct wb_device *wb, struct segment_header *seg, | |
- size_t k, size_t *migrate_io_count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dm-writeboost | |
============= | |
dm-writeboostターゲットはブロックレベルのログ構造化キャッシングを提供する. | |
dm-writeboostは, 受け取ったランダムライトを巨大なログにまとめ, キャッシュデバイスへのシーケンシャルライトを行う. | |
Mechanism | |
========= | |
Basic Mechanism |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dm-writeboost | |
============= | |
dm-writeboostターゲットはブロックレベルのログ構造化キャッシングを提供する. | |
dm-writeboostは, 受け取ったランダムライトを巨大なログにまとめ, キャッシュデバイスへのシーケンシャルライトを行う. | |
Mechanism | |
========= | |
Basic Mechanism |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Writeboost | |
========== | |
Writeboost target provides block-level log-structured caching. | |
Accepted bios are put into a big "log" and the log is written to the cache | |
device sequentially. | |
Mechanism | |
========= | |
Writeboost caches only writes - reads are not cached. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kira@Kamille:~/src/device-mapper-test-suite/lib/dmtest$ git di | |
diff --git a/lib/dmtest/tests/writeboost/stack.rb b/lib/dmtest/tests/writeboost/stack.rb | |
index 56b0d73..1aee66d 100644 | |
--- a/lib/dmtest/tests/writeboost/stack.rb | |
+++ b/lib/dmtest/tests/writeboost/stack.rb | |
@@ -78,6 +78,12 @@ class WriteboostStack | |
@fast_tvm.table('plog_dev') | |
) do |backing_dev, cache_dev, plog_dev| | |
@backing_dev = backing_dev | |
+ class << @backing_dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Successfully installed device_mapper_test_suite-0.0.1 | |
1 gem installed | |
writeboost | |
WriteboostTestsBackingDevice | |
compile_ruby | |
do_stress | |
fio_cache | |
fio_database_funtime | |
fio_sub_volume | |
git_extract_cache_quick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let v1 = vec!["b", "C", "l"]; | |
let v2 = v1.iter().map(|x| matches.opt_str(*x)); | |
let n = v2.filter(|ref x| x.is_none()).count(); | |
if n > 1 { | |
crash!(1, "{}: cannot split in more than one way", NAME); | |
} else if n == 1 { | |
let e = v2.find(|ref x| !x.is_none()).unwrap(); // error | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Construct { | |
fn new(_hint: Option<Self>) -> Box<Construct>; | |
} | |
struct Foo { x: int } | |
struct Bar { y: uint } | |
impl Construct for Foo { | |
fn new(_: Option<Foo>) -> Box<Construct> { | |
box Foo { x: 42 } as Box<Construct> |
OlderNewer