bcache-tools: enable big endian support for s390x
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | bcache-tools: change bcache.c:crc64() to non-inline functionbcache.c | +1 | 0 replies | |
| 2/4 | bcache-tools: only set/display sb.bucket_size for cache devicesbcache-super-show.c make-bcache.c | +5 | 0 replies | |
| 3/4 | bcache-tools: print more super block information in bcache-super-showbcache-super-show.c | +14 | 0 replies | |
| 4/4 | bcache-tools: add CPU endianness supportbcache-super-show.c bcache.c bcache.h +2 more | +192 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] bcache-tools: enable big endian support for s390x
Recently I recieve a bug report that bcache does not work on IBM s390x, I find the problem is from endianness support and checksum calculation.
Both user space tools and Linux kernel code should be fixed, this patch set is the modification to user space tools.
Ideas of this patch set are,
1, super block members should be swapped to little endian before writting
down to media.
2, super block members should be explicitly swapped to little endian
before calculate checksum.
3, checksum also should be swapped to little endian before writiting down
to media.
4, checksum is checked before super block members being swapped into CPU
byteorder.
The first 3 patches are preparation and the last patch does big endian support.
NOTE: Linux kernel code also needs to be patched, this patch set just makes new created bcache devices in a correct byte order.
Coly Li
---
Coly Li (4):
bcache-tools: change bcache.c:crc64() to non-inline function
bcache-tools: only set/display sb.bucket_size for cache devices
bcache-tools: print more super block information in bcache-super-show
bcache-tools: add CPU endianness support
bcache-super-show.c | 52 +++++++++++++++++++++----------- bcache.c | 75 ++++++++++++++++++++++++++++++++++++++++++++- bcache.h | 19 +++++++++--- byteorder.h | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++ make-bcache.c | 5 +-- 5 files changed, 212 insertions(+), 26 deletions(-) create mode 100644 byteorder.h
Signature · 1 line
2.16.2