Commit Graph

17 Commits

Author SHA1 Message Date
Jacob Malevich
e8c1cee578 Create libbcache.a.
Move make-bcache, probe-bcache, and bcache-super-show functions into a
static library called libbcache.

Change-Id: Ieed626225e08507a8ccd12f6bb0c07f64480de9b
Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-10-27 12:13:52 -07:00
Kent Overstreet
02c47b0373 Superblock version 6
Change-Id: Iba976c8c5a4a91dcac06145471fc70baa6a6393e
2014-08-29 21:48:17 +00:00
rk
039b45dfe9 make-bcache.c: Added support for storing "label" information for the
the devices in the super-block.
bcache.h:       Bring version information to the latest kernel version.
bcache-super-show.c: Add setsize for caching devices. This indicates
                     the number of devices in caching set.

Testing done:

1.0  make-bcache with --label option and checking back to see if
     bcache-super-show shows the devices.
2.0  bcache-super-show does not bail if version is 5.
3.0  bcache-super-show shows the correct setsize.

Change-Id: If0f1ec6204b233b34ff4c8a57a8809d2c8dbe3e3
2014-06-03 10:24:10 -07:00
Gabriel
866e21a35d super-show: Print label 2013-10-03 13:48:50 +02:00
Gabriel
decab73814 super-show: Show sync mode and cache replacement policy 2013-09-27 12:05:46 +02:00
Kent Overstreet
557c79518c bcache-tools are GPL 2013-07-17 13:13:31 -07:00
Gabriel
fc7d4231be super-show: show detached/clean/dirty/inconsistent status 2013-05-08 09:40:46 +02:00
Gabriel
315ab92e58 super-show: print cache mode (writethrough, writeback, writearound, none) 2013-05-08 09:40:46 +02:00
Gabriel
af6e3f1c74 super-show: don't show cache_count
This is a cache-set property, but not terribly useful.
Showing it on backing devices was also incorrect.
2013-05-08 09:40:46 +02:00
Gabriel
19d17f5b91 super-show: show more cache-related information
Only show nbuckets and nr_this_dev on cache devices;
explain nbuckets' relation to device size by printing
both total_sectors (superblock included) and
cache_sectors (superblock excluded).
2013-05-08 09:40:46 +02:00
Gabriel
9cbe774be2 super-show: make the version annotation more terse 2013-05-08 09:40:44 +02:00
Gabriel
94755cc757 Update data offset format and warn about the previous one.
Also update the macro to select a bdev.
Also reindent.
2013-04-15 12:48:39 -07:00
Gabriel
445032e1b6 Use uppercase hex when showing csum and expected. 2013-03-12 17:01:49 +01:00
Gabriel
727c189c59 Show the writeback flag and the discard flag. 2013-03-10 11:04:10 +01:00
Gabriel
1b7cbd1d77 Version cleanup. 2013-03-10 11:03:59 +01:00
Gabriel
3b6ae63e49 Fix offsets, cache and backing are two different cases. 2013-03-09 15:51:17 +01:00
Gabriel
865a3b1f0b Add a command to display a bcache superblock. 2013-03-09 14:33:08 +01:00