summaryrefslogtreecommitdiff
path: root/bcache.c
AgeCommit message (Collapse)Author
2017-02-06Add a command to dump filesystem metadataKent Overstreet
2017-02-06update bcache code, fsck improvementsKent Overstreet
2017-01-20bcache in userspace; userspace fsckKent Overstreet
2016-12-11add support for maximum journal entry sizeKent Overstreet
also rip out prototype crypto support code - real code is in the dev branch, with the new superblock format
2016-10-06bcache device_show now dumps superblocksKent Overstreet
2016-08-25Rework option handlingKent Overstreet
2016-08-17Encryption supportKent Overstreet
2016-03-11On disk format updatesKent Overstreet
2016-03-11Redo lots of stuffKent Overstreet
2015-06-19Add support for setting data checksum type, compression typeKent Overstreet
2015-05-10add an option for writing old superblocksKent Overstreet
2015-05-10rewriteKent Overstreet
2015-03-28Major refactoring, add new settings to bcacheadm formatKent Overstreet
2015-02-13bcache-tools: update for superblock changesSlava Pestov
Change-Id: I660fef1366005377041cac5d75771d2fdc8c0824
2015-02-12bcacheadm: fix capacity commandJacob Malevich
regression from 5730e47b Signed-off-by: Jacob Malevich <jam@daterainc.com> Issue DAT-1977 Change-Id: I598ca9e5623fde441bb842580c2494fd03316f00
2015-02-09Add option to set btree node size, give it sane defaultKent Overstreet
Change-Id: Ic6d0a79b8a33c8c17422e0875d9e8d3fb3ef6d98
2015-02-02bcacheadm: print more info in query_devJacob Malevich
Also display the internal cacheset uuid for each dev, stored in the superblock. As well as the dev uuid stored in the struct member_info. Signed-off-by: Jacob Malevich <jam@daterainc.com> Issue DAT-1913 Change-Id: Ib9815a023b0791c54ffde573fda1e9911d757c34
2015-01-29Display new user_uuid instead of internal cache set uuidKent Overstreet
Change-Id: I9166876dba44de96f8e3f2da8f16728cbb57540a
2015-01-27Cleanup, rip out more code, fix compiler warningsKent Overstreet
Change-Id: I76b410dc700a917d2717b1ceda0df061a1599144
2015-01-27update stop ioctlKent Overstreet
Change-Id: Ib1757baa0bcc48082cb36848b5f06da2cc401437
2015-01-21Update for bcache superblock changesKent Overstreet
Also, drop make-bcache - it's superceded by bcacheadm Change-Id: I88ee25a1c13f2cbb0b0efa6e01bdca3f069bab62
2015-01-21Merge branch 'master' of ↵jenkins
ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools Issue DAT-
2015-01-20bcacheadm: add --writearound flag for testing, probably not usefulSlava Pestov
Change-Id: Ia4a2125a50d7b102791b8fc64b48bd102d8cdc89
2015-01-15update for bcache header changesKent Overstreet
Change-Id: I5c64d438dac8bc28411f9a25e1be711477a3af80
2015-01-14bcacheadm: ioctl refactorJacob Malevich
add-devs, rm-devs, and set-failed no longer need the cacheset uuid. The cacheset already comes with the bcache_extent0 chardev. Change-Id: I32572e865361d3c6ce759cf53f19d3f0e4cf04ce Signed-off-by: Jacob Malevich <jam@daterainc.com>
2015-01-13bcacheadm: set disk-failed commandJacob Malevich
Given a cacheset uuid and a device uuid, set that devices member_info to CACHE_FAILED. Change-Id: Ideb2034b1deb5fd11efda67f85b82d8a49fe71e4 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2015-01-13bcacheadm: fix status for forcefully pulled devsJacob Malevich
Cross reference the superblock with the highest sequence number to sysfs. If there is a device shown still active in the superblock, mark it as 'missing'. Fixes DAT-1758 Change-Id: I13098bbde6bd4b0b402c74ed648160576605311c Signed-off-by: Jacob Malevich <jam@daterainc.com>
2015-01-12bcacheadm: fix variable bucket size inputJacob Malevich
If the user added n caches but <n bucket_sizes, print a message saying that cache# will be using the default bucket_size Change-Id: I025474ca672bf79d1c88813e6f030ba7590e820d Signed-off-by: Jacob Malevich <jam@daterainc.com>
2015-01-06bcacheadm: increase btree node size for large bucketsJacob Malevich
buckets over 512k were causing deadlocks when the btree node size was smaller than the bucket size. Change-Id: Icb278d75c241e9643ab1355620e3d656df52c4ee Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-19bcacheadm: fix status and query-devsJacob Malevich
Previously we were reading old superblocks stuck in the cache. Pass in O_DIRECT when opening the device. This requires that the dest buffer be memaligned. If we are unable to read the entire superblock then increase the buffer and try again. Also since we now have to alloc the sb, make sure it is freed everywhere in bcacheadm. Fixes DAT-1609 DAT-1626 Change-Id: I04b5337b992a8569809835b5826a2656df753214 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-19bcacheadm: fix list-cachesets --list-devsJacob Malevich
list-cachesets now searches through all cache# symlinks instead of iterating with i++. This is because bcache doesn't immediately reuse a cache# symlink when a dev gets removed. Fixes DAT-1635 Progress DAT-1646 Change-Id: I6901e29dc13f4e2a76bdc49871e87f07667ec786 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-19bcacheadm: only fail csum check when -f is passedJacob Malevich
Change-Id: I710f2b59940414830d08c7d018b53b84c6cbde05 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-19bcacheadm: add capacity commandJacob Malevich
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-11bcacheadm: add query-devs --brief commandJacob Malevich
bcacheadm query-devs --brief /dev/sdb /dev/sdc /dev/sdd will output table showing only the dev name, dev uuid, server uuid, and cluster uuid for each device Change-Id: I47a375c9a8f9284942befa0151fae32b0b856a53 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-11bcacheadm: add command to modify sysfs attributes forJacob Malevich
a cache or cacheset bcacheadm modify -u csetuuid -d cacheuuid attr val bcacheadm modify -u csetuuid attr val bcacheadm modify --list Change-Id: I7b8ddfb6a7cd12a7bc71870dcc10787a7d3d9e8d Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-10bcacheadm: fix status commandJacob Malevich
previously it wasn't properly looking through the list of member info in the cache that has the highest seq. Change-Id: I2a6ebf6bd0814055ec1247d0f4d79dab683115d3 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-09bcacheadm: add-devs and rm-dev optionsJacob Malevich
Option to add multiple devices and remove single devices. bcacheadm add-devs --set=uuid <list of devices> bcacheadm rm-dev <dev> Change-Id: I4f0a287c02dfad76d8263554e455c408191ea7ba Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-12-05bcacheadm fixesKent Overstreet
Change-Id: I3f6024d54aee263ef843705a0e9a02869e2a53e9
2014-11-25Remove exit points from libbache and return error messages instead.Jacob Malevich
Change-Id: Ibd238bb63354dae841c2a70e5ded550b3c603d4b Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-24Fix string parsingJacob Malevich
Change-Id: I0edd8f1e247ae802cdccf871a40b50d8a8714433 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-21bcacheadm unregister devicesJacob Malevich
uses unregister ioctl to unregister a cacheset that the device belongs to Change-Id: I01772de3471888c4951f050b3e92f41b58c5d103 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-18bcacheadm: add ability to find a dev uuid within a cachesetJacob Malevich
simplifies input for finding stats for a single dev Change-Id: I5d879aaa8cb68aaaedabd2bc780fbea4994e2541 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-18bcacheadm: dev path parsingJacob Malevich
Parse out the dev name for list-cachesets --list-devs This gives the dev path that will be needed for query-dev to get the superblock Change-Id: I333cd8a0e593e02d7635111309b8aff14050cc41 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-14Option for returning only the uuid of the dev when doing aJacob Malevich
query-dev Change-Id: Ia055da0516bc7baac836642fa1405b77adfc5139 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-13bcache query-dev fixes, and don't print the sb out for statusJacob Malevich
Change-Id: I909ac15ca32a9cdecd6c7455e884d14f30ab0188 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-13bcacheadm: list-cachesets --list-devs optionJacob Malevich
lists the devices in each cacheset Change-Id: Ie3beb38203eefc3ab64b2a3d37652964f7021e54 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-13bcacheadm: register bcache ioctl already takes an argv, no need to parse itJacob Malevich
Change-Id: I0295ebde998c038feb40332ea303935035b8e2bd Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-12bcacheadm: fix tiering and backing device bugsJacob Malevich
TODO: Support multiple devices for a single -C or -B flag Change-Id: I73b18a39a0e0ff564600c2fc7386a785d3a10870 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-12bcacheadm: format bug fixesJacob Malevich
bcacheadm format is now working in replacement of make-bcache Change-Id: Ib152dde3b8dc1418d1508020529dd58e4cf5d222 Signed-off-by: Jacob Malevich <jam@daterainc.com>
2014-11-10Update some bcacheadm error messagesJacob Malevich
Change-Id: Iddc638dacb7c68b621d686ba632da16fbe39bc15 Signed-off-by: Jacob Malevich <jam@daterainc.com>