Jacob Malevich 91ba18738e bcacheadm: add capacity command
prints the device capacity, and free space for a cacheset

example:
bcacheadm capacity -u UUID --devs

Device Name    Capacity (512 Blocks)    Free (512 Blocks)
/dev/sdb       1048576.00               1024128.00
/dev/sdc       1048576.00               1024128.00
/dev/sdd       1048576.00               1024128.00
Total          3145728.00               3072384.00

Also did some bcacheadm stats refactoring.

Change-Id: Iff5562191478c5fd9f03399a9479d3d75740904d
Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-19 14:43:34 -08:00
2013-10-07 12:57:31 +02:00
2014-08-29 21:48:17 +00:00
2013-10-11 13:21:56 +02:00
2014-10-27 12:13:52 -07:00
2013-07-17 13:13:31 -07:00
2014-10-27 17:37:05 -07:00
2014-12-19 14:43:34 -08:00
2014-12-19 14:43:34 -08:00
2014-11-24 15:53:35 -08:00
2014-12-19 14:43:34 -08:00
2014-10-27 17:37:05 -07:00
2013-07-17 13:13:31 -07:00
2011-02-13 07:01:10 -08:00
2014-12-05 19:20:03 -08:00
2014-11-12 15:22:38 -08:00
2014-08-29 21:48:17 +00:00

These are the userspace tools required for bcache.

Bcache is a patch for the Linux kernel to use SSDs to cache other block
devices. For more information, see http://bcache.evilpiepirate.org.
Documentation for the run time interface is included in the kernel tree, in
Documentantion/bcache.txt.

Included tools:

make-bcache
Formats a block device for use with bcache. A device can be formatted for use
as a cache or as a backing device (requires yet to be implemented kernel
support). The most important option is for specifying the bucket size.
Allocation is done in terms of buckets, and cache hits are counted per bucket;
thus a smaller bucket size will give better cache utilization, but poorer write
performance. The bucket size is intended to be equal to the size of your SSD's
erase blocks, which seems to be 128k-512k for most SSDs; feel free to
experiment.

probe-bcache
Only necessary until support for the bcache superblock is included
in blkid; in the meantime, provides just enough functionality for a udev script
to create the /dev/disk/by-uuid symlink. The arguments it does support are the
same as for blkid.

bcache-super-show
Prints the bcache superblock of a cache device or a backing device.
Description
Languages
C 95.6%
C++ 2%
Rust 1.4%
Roff 0.4%
Nix 0.2%
Other 0.4%