From: Mike Snitzer Date: Thu, 9 Jan 2014 21:04:12 +0000 (-0500) Subject: dm cache: add block sizes and total cache blocks to status output X-Git-Tag: v3.14-rc1~130^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a388618f120cdc70cd6b6dbcab5f7a4aff500f6;p=pandora-kernel.git dm cache: add block sizes and total cache blocks to status output Improve cache_status to emit: <#used metadata blocks>/<#total metadata blocks> <#used cache blocks>/<#total cache blocks> ... Adding the block sizes allows for easier calculation of the overall size of both the metadata and cache devices. Adding <#total cache blocks> provides useful context for how much of the cache is used. Unfortunately these additions to the status will require updates to users' scripts that monitor the cache status. But these changes help provide more comprehensive information about the cache device and will simplify tools that are being developed to manage dm-cache devices -- because they won't need to issue 3 operations to cobble together the information that we can easily provide via a single status ioctl. While updating the status documentation in cache.txt spaces were tabify'd. Requested-by: Jonathan Brassow Signed-off-by: Mike Snitzer Acked-by: Joe Thornber --- Reading git-diff-tree failed