bcache-tools: suport zoned device as making backing evice
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bcache-tools: set zoned size aligned data_offset on backing device for zoned deviveMakefile make.c zoned.c +1 more | +110 | 0 replies | |
| 2/3 | bcache-tools: add is_zoned_device()zoned.c zoned.h | +6 | 0 replies | |
| 3/3 | bcache-tools: convert writeback to writethrough mode for zoned backing devicemake.c | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] bcache-tools: suport zoned device as making backing evice
Hi folks,
This series is for bcache-tools to support making zoned device as bcache backing device.
There are two major ideas to support zoned device as bcache backing device,
- The super block data_offset should be aligned to zone size. By default the data_offset is set to 1 zone size for zoned backing device.
- Writeback mode is not supported yet. If the cache mode is explicitly set to writeback, print message to terminal to inform users that the cache mode is converted to wrightthough.
After the data_offset and cache mode is set properly, the rested stuffs for zoned device support are from bcache driver in Linux kernel.
Thanks for your review in advance.
Coly Li
---
Coly Li (3):
bcache-tools: set zoned size aligned data_offset on backing device for
zoned devive
bcache-tools: add is_zoned_device()
bcache-tools: convert writeback to writethrough mode for zoned backing
device
Makefile | 4 +-- make.c | 20 +++++++++++- zoned.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ zoned.h | 14 +++++++++ 4 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 zoned.c create mode 100644 zoned.h
Signature · 1 line
2.25.0