]>
git.sesse.net Git - bcachefs-tools-debian/log
Kent Overstreet [Fri, 15 Jan 2016 15:48:49 +0000 (06:48 -0900)]
bin, not sbin
Kent Overstreet [Thu, 14 Jan 2016 07:18:22 +0000 (22:18 -0900)]
On disk format updates
Kent Overstreet [Sat, 12 Mar 2016 06:18:42 +0000 (21:18 -0900)]
Redo lots of stuff
Kent Overstreet [Fri, 28 Aug 2015 17:04:02 +0000 (09:04 -0800)]
Don't install udev hook - it's confusing with bcachefs
Kent Overstreet [Fri, 28 Aug 2015 10:06:01 +0000 (02:06 -0800)]
Fix help for --compression-type
Mike Krinkin [Sun, 23 Aug 2015 18:38:56 +0000 (21:38 +0300)]
Fix build error with libblkid usage
Kent Overstreet [Fri, 19 Jun 2015 07:57:03 +0000 (00:57 -0700)]
Add support for setting data checksum type, compression type
Kent Overstreet [Mon, 11 May 2015 05:00:24 +0000 (22:00 -0700)]
add an option for writing old superblocks
Kent Overstreet [Sat, 9 May 2015 01:13:38 +0000 (18:13 -0700)]
rewrite
Kent Overstreet [Mon, 30 Mar 2015 08:53:30 +0000 (01:53 -0700)]
Better default bucket size
Kent Overstreet [Sun, 29 Mar 2015 06:21:33 +0000 (23:21 -0700)]
Major refactoring, add new settings to bcacheadm format
Kent Overstreet [Sun, 15 Mar 2015 22:49:05 +0000 (15:49 -0700)]
Minor cleanup
Kent Overstreet [Sun, 15 Mar 2015 00:50:35 +0000 (17:50 -0700)]
Remove autotools stuff
Slava Pestov [Fri, 13 Feb 2015 21:44:28 +0000 (13:44 -0800)]
bcache-tools: update for superblock changes
Change-Id: I660fef1366005377041cac5d75771d2fdc8c0824
Jacob Malevich [Wed, 11 Feb 2015 00:55:10 +0000 (16:55 -0800)]
bcacheadm: fix capacity command
regression from
5730e47b
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Issue DAT-1977
Change-Id: I598ca9e5623fde441bb842580c2494fd03316f00
Jacob Malevich [Tue, 10 Feb 2015 22:39:56 +0000 (14:39 -0800)]
bcacheadm: Handle missing arg in rm-dev
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Issue DAT-1978
Change-Id: Iec1252f39bb1931ec4544b56b7db24c43253b8cd
Kent Overstreet [Tue, 10 Feb 2015 05:51:56 +0000 (21:51 -0800)]
Add option to set btree node size, give it sane default
Change-Id: Ic6d0a79b8a33c8c17422e0875d9e8d3fb3ef6d98
Jacob Malevich [Tue, 3 Feb 2015 03:38:27 +0000 (19:38 -0800)]
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
Jacob Malevich [Tue, 3 Feb 2015 01:37:27 +0000 (17:37 -0800)]
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
jenkins [Fri, 30 Jan 2015 02:35:31 +0000 (18:35 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2014.KERNEL.rk/bcache-tools
Issue DAT-
jenkins [Fri, 30 Jan 2015 02:11:23 +0000 (18:11 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Issue DAT-
jenkins [Fri, 30 Jan 2015 02:11:19 +0000 (18:11 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Issue DAT-
Kent Overstreet [Thu, 29 Jan 2015 22:57:58 +0000 (22:57 +0000)]
Revert "if cache_set uuid is given in format command, then put the same"
This reverts commit
38aa84d04bcd47bb832c3b7ec1e40be9d3c38c69 - previous patch
fixed this correctly.
Change-Id: I76436860a85223883efcdbb1f91c4ff874a9f3b0
Kent Overstreet [Thu, 29 Jan 2015 21:37:37 +0000 (13:37 -0800)]
Display new user_uuid instead of internal cache set uuid
Change-Id: I9166876dba44de96f8e3f2da8f16728cbb57540a
Raghu Krishnamurthy [Thu, 29 Jan 2015 05:53:55 +0000 (21:53 -0800)]
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
Raghu Krishnamurthy [Thu, 29 Jan 2015 00:59:38 +0000 (16:59 -0800)]
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
Kent Overstreet [Tue, 27 Jan 2015 21:45:02 +0000 (13:45 -0800)]
Cleanup, rip out more code, fix compiler warnings
Change-Id: I76b410dc700a917d2717b1ceda0df061a1599144
Kent Overstreet [Fri, 23 Jan 2015 00:50:27 +0000 (00:50 +0000)]
update stop ioctl
Change-Id: Ib1757baa0bcc48082cb36848b5f06da2cc401437
Kent Overstreet [Thu, 22 Jan 2015 07:11:47 +0000 (23:11 -0800)]
Update for bcache superblock changes
Also, drop make-bcache - it's superceded by bcacheadm
Change-Id: I88ee25a1c13f2cbb0b0efa6e01bdca3f069bab62
jenkins [Wed, 21 Jan 2015 08:44:46 +0000 (00:44 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Issue DAT-
Slava Pestov [Wed, 21 Jan 2015 06:18:35 +0000 (22:18 -0800)]
bcacheadm: add --writearound flag for testing, probably not useful
Change-Id: Ia4a2125a50d7b102791b8fc64b48bd102d8cdc89
Slava Pestov [Fri, 16 Jan 2015 05:41:21 +0000 (21:41 -0800)]
bcacheadm: fix --cache_replacement_policy flag
Change-Id: Ic1f97df531345e1c4cb9a83f0fc5463718f56c60
Kent Overstreet [Thu, 15 Jan 2015 09:33:48 +0000 (09:33 +0000)]
update for bcache header changes
Change-Id: I5c64d438dac8bc28411f9a25e1be711477a3af80
Jacob Malevich [Thu, 15 Jan 2015 00:36:49 +0000 (16:36 -0800)]
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>
Jacob Malevich [Wed, 14 Jan 2015 01:22:20 +0000 (17:22 -0800)]
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>
Jacob Malevich [Tue, 13 Jan 2015 00:41:28 +0000 (16:41 -0800)]
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>
Jacob Malevich [Mon, 12 Jan 2015 22:57:41 +0000 (14:57 -0800)]
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>
Jacob Malevich [Thu, 8 Jan 2015 03:01:06 +0000 (19:01 -0800)]
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>
jenkins [Sun, 11 Jan 2015 07:14:52 +0000 (23:14 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
Rob Millner [Fri, 9 Jan 2015 20:08:00 +0000 (12:08 -0800)]
Add Apple addendums to .gitignore
Change-Id: I1b45829d872773db1b0f4aef2ea7f0f7eb70c423
jenkins [Fri, 9 Jan 2015 10:42:20 +0000 (02:42 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
Slava Pestov [Wed, 7 Jan 2015 07:12:45 +0000 (23:12 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Slava Pestov [Wed, 7 Jan 2015 07:07:18 +0000 (23:07 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
jenkins [Tue, 6 Jan 2015 19:16:44 +0000 (11:16 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Jacob Malevich [Tue, 6 Jan 2015 19:10:20 +0000 (11:10 -0800)]
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>
jenkins [Fri, 2 Jan 2015 03:41:25 +0000 (19:41 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
jenkins [Wed, 31 Dec 2014 23:26:48 +0000 (15:26 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.CONTROL/bcache-tools
Jacob Malevich [Fri, 19 Dec 2014 23:35:13 +0000 (15:35 -0800)]
bcacheadm: Fix bcacheadm status segfault if no devs given
Fixes DAT-1655
Change-Id: I79cfc78fb8513f3e751332d65310d65020c15e3e
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 19 Dec 2014 03:19:21 +0000 (19:19 -0800)]
bcacheadm: fix status and query-devs
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>
Jacob Malevich [Thu, 18 Dec 2014 00:02:13 +0000 (16:02 -0800)]
bcacheadm: fix list-cachesets --list-devs
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>
Jacob Malevich [Wed, 17 Dec 2014 20:10:47 +0000 (12:10 -0800)]
bcacheadm: only fail csum check when -f is passed
Change-Id: I710f2b59940414830d08c7d018b53b84c6cbde05
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Tue, 16 Dec 2014 02:10:25 +0000 (18:10 -0800)]
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>
Jacob Malevich [Thu, 11 Dec 2014 21:43:14 +0000 (13:43 -0800)]
bcacheadm: add query-devs --brief command
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>
Jacob Malevich [Wed, 10 Dec 2014 02:03:47 +0000 (18:03 -0800)]
bcacheadm: add command to modify sysfs attributes for
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>
Jacob Malevich [Wed, 10 Dec 2014 02:26:13 +0000 (18:26 -0800)]
bcacheadm: fix status command
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>
Jacob Malevich [Wed, 26 Nov 2014 02:36:05 +0000 (18:36 -0800)]
bcacheadm: add-devs and rm-dev options
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>
Kent Overstreet [Sat, 6 Dec 2014 03:20:03 +0000 (19:20 -0800)]
bcacheadm fixes
Change-Id: I3f6024d54aee263ef843705a0e9a02869e2a53e9
jenkins [Wed, 31 Dec 2014 19:15:37 +0000 (11:15 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
jenkins [Tue, 30 Dec 2014 01:51:09 +0000 (17:51 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
Claudio Fleiner [Sun, 28 Dec 2014 04:13:20 +0000 (20:13 -0800)]
exclude some files from rpm that gets installed
Change-Id: Id7b749358dcae30f448acc5c1c71e42b2687395b
Claudio Fleiner [Wed, 24 Dec 2014 18:18:26 +0000 (10:18 -0800)]
update version and build
Change-Id: I2f9e09ee6a927f7f89207914745ef50b6493e4b9
Jacob Malevich [Fri, 19 Dec 2014 23:35:13 +0000 (15:35 -0800)]
bcacheadm: Fix bcacheadm status segfault if no devs given
Fixes DAT-1655
Change-Id: I79cfc78fb8513f3e751332d65310d65020c15e3e
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 19 Dec 2014 23:21:51 +0000 (15:21 -0800)]
Merge ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Jacob Malevich [Fri, 19 Dec 2014 03:19:21 +0000 (19:19 -0800)]
bcacheadm: fix status and query-devs
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>
Jacob Malevich [Thu, 18 Dec 2014 00:02:13 +0000 (16:02 -0800)]
bcacheadm: fix list-cachesets --list-devs
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>
Jacob Malevich [Wed, 17 Dec 2014 20:10:47 +0000 (12:10 -0800)]
bcacheadm: only fail csum check when -f is passed
Change-Id: I710f2b59940414830d08c7d018b53b84c6cbde05
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Tue, 16 Dec 2014 02:10:25 +0000 (18:10 -0800)]
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>
jenkins [Sat, 13 Dec 2014 13:04:36 +0000 (05:04 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
Jacob Malevich [Thu, 11 Dec 2014 21:43:14 +0000 (13:43 -0800)]
bcacheadm: add query-devs --brief command
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>
Jacob Malevich [Wed, 10 Dec 2014 02:03:47 +0000 (18:03 -0800)]
bcacheadm: add command to modify sysfs attributes for
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>
Jacob Malevich [Wed, 10 Dec 2014 02:26:13 +0000 (18:26 -0800)]
bcacheadm: fix status command
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>
Jacob Malevich [Wed, 26 Nov 2014 02:36:05 +0000 (18:36 -0800)]
bcacheadm: add-devs and rm-dev options
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>
Raghu Krishnamurthy [Tue, 9 Dec 2014 03:23:39 +0000 (19:23 -0800)]
Set the label field in the cache set superblock if label is
specified.
Change-Id: Ic1b2d45c9544acfbabd8ee99cfe59c4ae6fb4183
Claudio Fleiner [Mon, 8 Dec 2014 08:57:16 +0000 (00:57 -0800)]
manual merge
Change-Id: I75355d4671c46edbb2a6a64a7a8b6217d02d4c12
Kent Overstreet [Sat, 6 Dec 2014 03:20:03 +0000 (19:20 -0800)]
bcacheadm fixes
Change-Id: I3f6024d54aee263ef843705a0e9a02869e2a53e9
Claudio Fleiner [Fri, 5 Dec 2014 23:11:28 +0000 (15:11 -0800)]
rpmify
Change-Id: Iffa28034d4228366565c762b4103fae2a54b2518
Jacob Malevich [Tue, 25 Nov 2014 01:16:55 +0000 (17:16 -0800)]
Remove exit points from libbache and return error messages instead.
Change-Id: Ibd238bb63354dae841c2a70e5ded550b3c603d4b
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Mon, 24 Nov 2014 23:53:35 +0000 (15:53 -0800)]
Fix string parsing
Change-Id: I0edd8f1e247ae802cdccf871a40b50d8a8714433
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 21 Nov 2014 22:42:07 +0000 (14:42 -0800)]
bcacheadm unregister devices
uses unregister ioctl to unregister a cacheset that the device
belongs to
Change-Id: I01772de3471888c4951f050b3e92f41b58c5d103
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Tue, 18 Nov 2014 22:14:13 +0000 (14:14 -0800)]
bcacheadm: add ability to find a dev uuid within a cacheset
simplifies input for finding stats for a single dev
Change-Id: I5d879aaa8cb68aaaedabd2bc780fbea4994e2541
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 14 Nov 2014 22:29:05 +0000 (14:29 -0800)]
bcacheadm: dev path parsing
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>
Jacob Malevich [Fri, 14 Nov 2014 19:24:02 +0000 (11:24 -0800)]
Option for returning only the uuid of the dev when doing a
query-dev
Change-Id: Ia055da0516bc7baac836642fa1405b77adfc5139
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 14 Nov 2014 01:31:39 +0000 (17:31 -0800)]
bcache query-dev fixes, and don't print the sb out for status
Change-Id: I909ac15ca32a9cdecd6c7455e884d14f30ab0188
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 14 Nov 2014 01:08:20 +0000 (17:08 -0800)]
bcacheadm: list-cachesets --list-devs option
lists the devices in each cacheset
Change-Id: Ie3beb38203eefc3ab64b2a3d37652964f7021e54
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Thu, 13 Nov 2014 20:30:26 +0000 (12:30 -0800)]
bcacheadm: register bcache ioctl already takes an argv, no need to parse it
Change-Id: I0295ebde998c038feb40332ea303935035b8e2bd
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Thu, 13 Nov 2014 01:51:42 +0000 (17:51 -0800)]
bcacheadm: fix tiering and backing device bugs
TODO: Support multiple devices for a single -C or -B flag
Change-Id: I73b18a39a0e0ff564600c2fc7386a785d3a10870
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Wed, 12 Nov 2014 23:22:38 +0000 (15:22 -0800)]
bcacheadm: format bug fixes
bcacheadm format is now working in replacement of make-bcache
Change-Id: Ib152dde3b8dc1418d1508020529dd58e4cf5d222
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Tue, 11 Nov 2014 02:42:36 +0000 (18:42 -0800)]
Initial template for bcacheadm man page.
TODO: Work with Kent to fill in descriptions for several items
Change-Id: Iea4fe9e6a99842bf40b0213eecb61d48952aa1bb
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Mon, 10 Nov 2014 23:37:58 +0000 (15:37 -0800)]
Update some bcacheadm error messages
Change-Id: Iddc638dacb7c68b621d686ba632da16fbe39bc15
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 7 Nov 2014 02:09:45 +0000 (18:09 -0800)]
bcacheadm stats, add flags
-c cache# displays stats for a specific cache in the cacheset
--stats-five-min,hour,day,total specific stats for the cacheset
Change-Id: I436d36d0853a250fe773573126c7a50a7251c72d
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Thu, 6 Nov 2014 03:38:27 +0000 (19:38 -0800)]
bcacheadm status [FLAGS] <list of stats>
FLAGS:
--list -list all stats in the uuid directory
--all -list all stats/values in the uuid directory
--uuid -must pass in a uuid for the cacheset
TODO: -subdirectory stats for individual caches
-subdirectory stats for over time stats
Change-Id: Ic7126a511fb17aa8c9ac7bf89e014ddbb719f46d
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Thu, 6 Nov 2014 01:45:57 +0000 (17:45 -0800)]
bcacheadm status <list of devs>
provides status for the newest sb version for each tier for all
the devs passed in
Change-Id: Ib6e5b08e65b5c36e7b1af0e9806efc39d069f94c
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Thu, 16 Oct 2014 02:00:40 +0000 (19:00 -0700)]
bcacheadm add list-cachesets and query-devs
Change-Id: Ie2bc7ba8293d1d493c0a215119456e4bb9e659aa
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 26 Sep 2014 23:10:20 +0000 (16:10 -0700)]
bcacheadm tool
bcacheadm is a combination of make-bcache, probe-bcache, bcache-super-show, and bcachectl(register).
Change-Id: Ia4f4cdd5f882516358eb0e26a75296d2103af1d0
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Tue, 23 Sep 2014 02:00:50 +0000 (19:00 -0700)]
Add multiple bucket_sizes to make-bcache
This is needed since libbcache expects an array of bucket sizes to be passed in. This is just so the tests can continue to use make-bcache until we can change them over to bcacheadm.
Change-Id: I1002e3d8355d45ffa914e6577569a5adfd1d6ccf
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Mon, 13 Oct 2014 22:21:09 +0000 (15:21 -0700)]
set btree_node_size for the cache_sb based on bucket_size
Change-Id: I98dab6e9a221cd8781095039d653ace84ffae806
Signed-off-by: Jacob Malevich <jam@daterainc.com>
Jacob Malevich [Fri, 26 Sep 2014 01:34:24 +0000 (18:34 -0700)]
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>
Kent Overstreet [Thu, 11 Sep 2014 22:55:39 +0000 (15:55 -0700)]
Add crc32c support
Change-Id: I9f830560b25cc84d77f46e3670ed07c05f44adc9
Kent Overstreet [Tue, 26 Aug 2014 02:11:59 +0000 (19:11 -0700)]
Superblock version 6
Change-Id: Iba976c8c5a4a91dcac06145471fc70baa6a6393e
Surbhi Palande [Wed, 6 Aug 2014 17:50:51 +0000 (10:50 -0700)]
Changed the keyword register_devices to register
This change is done after a discussion with Slava and
Raghu.
Change-Id: I225a890f08e162536d080d66bddaeae02196d215
Signed-off-by: Surbhi Palande <sap@rts26.daterainc.com>