Commit Graph

254 Commits

Author SHA1 Message Date
Kent Overstreet
b0f08fc1e3 Encryption support 2016-08-17 13:23:03 -08:00
Kent Overstreet
dda0923eeb debify 2016-04-25 17:14:11 -08:00
Kent Overstreet
f2e0c20309 endianness 2016-03-11 21:18:57 -09:00
Kent Overstreet
284c963646 bin, not sbin 2016-03-11 21:18:57 -09:00
Kent Overstreet
cbde373685 On disk format updates 2016-03-11 21:18:57 -09:00
Kent Overstreet
009d6db7b0 Redo lots of stuff 2016-03-11 21:18:42 -09:00
Kent Overstreet
074caf716a Don't install udev hook - it's confusing with bcachefs 2015-08-28 09:04:02 -08:00
Kent Overstreet
e460b80cb1 Fix help for --compression-type 2015-08-28 02:06:01 -08:00
Mike Krinkin
e9acf2e0d2 Fix build error with libblkid usage 2015-08-26 16:23:44 -08:00
Kent Overstreet
f45d84c6ab Add support for setting data checksum type, compression type 2015-06-19 00:57:03 -07:00
Kent Overstreet
15a004c7a2 add an option for writing old superblocks 2015-05-10 23:33:10 -07:00
Kent Overstreet
fb22ceda3e rewrite 2015-05-10 21:36:46 -07:00
Kent Overstreet
da1fff8700 Better default bucket size 2015-03-30 07:35:39 -07:00
Kent Overstreet
e13d21ade7 Major refactoring, add new settings to bcacheadm format 2015-03-28 23:21:33 -07:00
Kent Overstreet
fedea00623 Minor cleanup 2015-03-15 15:50:07 -07:00
Kent Overstreet
e24b52260e Remove autotools stuff 2015-03-15 15:49:11 -07:00
Slava Pestov
7ae2165053 bcache-tools: update for superblock changes
Change-Id: I660fef1366005377041cac5d75771d2fdc8c0824
2015-02-13 13:45:53 -08:00
Jacob Malevich
eb1d49d3f1 bcacheadm: fix capacity command
regression from 5730e47b

Signed-off-by: Jacob Malevich <jam@daterainc.com>

    Issue DAT-1977

Change-Id: I598ca9e5623fde441bb842580c2494fd03316f00
2015-02-12 14:05:52 -08:00
Jacob Malevich
ffb068c2b4 bcacheadm: Handle missing arg in rm-dev
Signed-off-by: Jacob Malevich <jam@daterainc.com>

    Issue DAT-1978

Change-Id: Iec1252f39bb1931ec4544b56b7db24c43253b8cd
2015-02-10 14:39:56 -08:00
Kent Overstreet
2859e5d780 Add option to set btree node size, give it sane default
Change-Id: Ic6d0a79b8a33c8c17422e0875d9e8d3fb3ef6d98
2015-02-09 21:51:56 -08:00
Jacob Malevich
16d5881bad bcacheadm: print more info in query_dev
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-02-02 19:38:27 -08:00
Jacob Malevich
3fa318e8b7 bcacheadm: add "list-cachesets --internal_uuid UUID" option
This shows the superblock set_uuid, given the user_uuid.

Signed-off-by: Jacob Malevich <jam@daterainc.com>

    Issue DAT-1913

Change-Id: If5f81427ac02bceeb609ae119f044de3fb5a0d77
2015-02-02 17:37:27 -08:00
jenkins
8c9ab06141 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2014.KERNEL.rk/bcache-tools
Issue DAT-
2015-01-29 18:35:31 -08:00
jenkins
ba06f99a9c Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Issue DAT-
2015-01-29 18:11:23 -08:00
jenkins
aae18fb8c9 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Issue DAT-
2015-01-29 18:11:19 -08:00
Kent Overstreet
c6fd0321f8 Revert "if cache_set uuid is given in format command, then put the same"
This reverts commit 38aa84d04b - previous patch
fixed this correctly.

Change-Id: I76436860a85223883efcdbb1f91c4ff874a9f3b0
2015-01-29 22:58:21 +00:00
Kent Overstreet
2ef1c983d5 Display new user_uuid instead of internal cache set uuid
Change-Id: I9166876dba44de96f8e3f2da8f16728cbb57540a
2015-01-29 22:58:15 +00:00
Raghu Krishnamurthy
b0ed54d843 Do not stop scanning on a cache-device link is missing since
it might not exists when a cache disk device is removed and
further cache device might be active.

Also handle the case where cache set might not be registered
and the status should just believe what the super block
says and not mark the disk as missing.

This part of code needs optimization but that is a separate
change.

    Issue DAT-1859
    Issue DAT-1860

Change-Id: I7eb8e8ff517eae240fde30c70b3ac90aa9a50ed6
2015-01-28 21:53:55 -08:00
Raghu Krishnamurthy
38aa84d04b if cache_set uuid is given in format command, then put the same
information in both set-uuid and user-uuid until support is added
in the CLI to display user-uuid as part of query-devs and in
format command to accept set_uuid and user_uuid.

    Issue DAT-

Change-Id: I6f2306d858211933cb783f0efe8fe0ade64dd312
2015-01-28 16:59:38 -08:00
Kent Overstreet
5730e47b6f Cleanup, rip out more code, fix compiler warnings
Change-Id: I76b410dc700a917d2717b1ceda0df061a1599144
2015-01-27 13:45:02 -08:00
Kent Overstreet
112aacfeff update stop ioctl
Change-Id: Ib1757baa0bcc48082cb36848b5f06da2cc401437
2015-01-27 13:42:24 -08:00
Kent Overstreet
3301c8dd52 Update for bcache superblock changes
Also, drop make-bcache - it's superceded by bcacheadm

Change-Id: I88ee25a1c13f2cbb0b0efa6e01bdca3f069bab62
2015-01-21 23:11:47 -08:00
jenkins
7243fbd22d Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Issue DAT-
2015-01-21 00:44:46 -08:00
Slava Pestov
34c87b0e98 bcacheadm: add --writearound flag for testing, probably not useful
Change-Id: Ia4a2125a50d7b102791b8fc64b48bd102d8cdc89
2015-01-20 22:18:52 -08:00
Slava Pestov
15c8235aa4 bcacheadm: fix --cache_replacement_policy flag
Change-Id: Ic1f97df531345e1c4cb9a83f0fc5463718f56c60
2015-01-15 21:41:40 -08:00
Kent Overstreet
2f0a24917b update for bcache header changes
Change-Id: I5c64d438dac8bc28411f9a25e1be711477a3af80
2015-01-15 19:27:21 -08:00
Jacob Malevich
b765c10d0c bcacheadm: ioctl refactor
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-14 16:36:49 -08:00
Jacob Malevich
aa3e2d589d bcacheadm: fix status command
Don't say that the device is missing unless it is still showing
"active" state.

Change-Id: I708d7719c6f6804cd06e75cbadf7bea36ac4b62d
Signed-off-by: Jacob Malevich <jam@daterainc.com>
2015-01-13 17:22:20 -08:00
Jacob Malevich
47013b3d06 bcacheadm: set disk-failed command
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-13 13:51:21 -08:00
Jacob Malevich
4304193d31 bcacheadm: fix status for forcefully pulled devs
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-13 13:51:05 -08:00
Jacob Malevich
cbf0900b35 bcacheadm: fix variable bucket size input
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-12 16:42:26 -08:00
jenkins
d7d289efaf Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools 2015-01-10 23:14:52 -08:00
Rob Millner
4b168ef820 Add Apple addendums to .gitignore
Change-Id: I1b45829d872773db1b0f4aef2ea7f0f7eb70c423
2015-01-09 12:08:00 -08:00
jenkins
b11ed701a4 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools 2015-01-09 02:42:20 -08:00
Slava Pestov
f6623ef5d8 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools 2015-01-06 23:12:45 -08:00
Slava Pestov
4018207e50 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools 2015-01-06 23:07:18 -08:00
jenkins
df0863ab6d Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools 2015-01-06 11:16:44 -08:00
Jacob Malevich
6257974a5a bcacheadm: increase btree node size for large buckets
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>
2015-01-06 11:10:20 -08:00
jenkins
2efb68b150 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools 2015-01-01 19:41:25 -08:00
jenkins
f0457007f1 Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.CONTROL/bcache-tools 2014-12-31 15:26:48 -08:00