Thread (2 messages) 2 messages, 2 authors, 2018-09-20

Re: [PATCH] bcache: add a command to show bcache topology

From: Pavel Goran <hidden>
Date: 2018-09-20 20:47:09

Hello Junhui,

Thursday, September 20, 2018, 8:26:58 PM, you wrote:
From 647ac21a0068df1fafb038a628791d2fcc135462 Mon Sep 17 00:00:00 2001
From: Tang Junhui <redacted>
Date: Fri, 21 Sep 2018 04:52:20 +0800
Subject: [PATCH] bcache: add a command to show bcache topology
This patch add a command to show bcache topology as bellow:
[root@ceph x86_64]# cat /sys/fs/bcache/show
"show" doesn't look like a good file name here, it's vague and doesn't
convey the meaning. Maybe just use "topology" instead?
( sdb ) : ( sdg:bcache4 sdf:bcache3 sde:bcache2 sdd:bcache1 sdc:bcache0 )
( sdh ) : ( sdm:bcache9 sdl:bcache8 sdk:bcache7 sdj:bcache6 sdi:bcache5 )
In the output result, each line shows cache devices in the first () and
its cached devices in the second (). By this command, we can be easily
to know cached device bcache4 base on backing device sdg and cache device
sdb, we also can see bcache0 bcache1 bcache2 bcache3 and bcache4 are in
the same cache set.
(patch skipped)
Pavel Goran
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help