]> git.sesse.net Git - bcachefs-tools-debian/log
bcachefs-tools-debian
7 years agobcachefs-in-userspace improvements
Kent Overstreet [Mon, 20 Mar 2017 05:39:19 +0000 (21:39 -0800)]
bcachefs-in-userspace improvements

Got rid of the stupid shim file hack

7 years agocmd_migrate fix
Kent Overstreet [Mon, 20 Mar 2017 01:51:23 +0000 (17:51 -0800)]
cmd_migrate fix

missing check_mark_super call - would trigger an assertion if
link_data() was called before we wrote any data

7 years agomake linux shim timer code less fragile
Kent Overstreet [Mon, 20 Mar 2017 01:21:49 +0000 (17:21 -0800)]
make linux shim timer code less fragile

7 years agoRename from bcache-tools to bcachefs-tools
Kent Overstreet [Sun, 19 Mar 2017 23:56:34 +0000 (15:56 -0800)]
Rename from bcache-tools to bcachefs-tools

7 years agoupdate bcache sources
Kent Overstreet [Thu, 16 Mar 2017 22:51:41 +0000 (14:51 -0800)]
update bcache sources

7 years agofix percpu_ref_reinit()
Kent Overstreet [Thu, 16 Mar 2017 22:23:40 +0000 (14:23 -0800)]
fix percpu_ref_reinit()

7 years agoAdd --quiet to cmd_format
Kent Overstreet [Tue, 14 Mar 2017 19:41:29 +0000 (11:41 -0800)]
Add --quiet to cmd_format

7 years agoRefactoring for device specific commands
Kent Overstreet [Sun, 12 Mar 2017 14:53:43 +0000 (06:53 -0800)]
Refactoring for device specific commands

7 years agoupdate bcache sources
Kent Overstreet [Fri, 10 Mar 2017 21:40:01 +0000 (12:40 -0900)]
update bcache sources

7 years agocmd_migrate: fix xattrs
Kent Overstreet [Fri, 10 Mar 2017 20:48:39 +0000 (11:48 -0900)]
cmd_migrate: fix xattrs

7 years agoadd a force flag to cmd_migrate
Kent Overstreet [Fri, 10 Mar 2017 01:12:51 +0000 (16:12 -0900)]
add a force flag to cmd_migrate

7 years agocmd_device_add improvements
Kent Overstreet [Thu, 9 Mar 2017 18:13:45 +0000 (09:13 -0900)]
cmd_device_add improvements

7 years agocmd_device_fail
Kent Overstreet [Thu, 9 Mar 2017 17:27:30 +0000 (08:27 -0900)]
cmd_device_fail

Add a comamnd for setting a device as failed, update bcache sources

7 years agocmd_migrate
Kent Overstreet [Wed, 1 Mar 2017 10:45:15 +0000 (01:45 -0900)]
cmd_migrate

7 years agoDelete more unused shim code, update bcache code
Kent Overstreet [Sat, 4 Mar 2017 06:09:52 +0000 (21:09 -0900)]
Delete more unused shim code, update bcache code

7 years agoNew on disk format - encryption
Kent Overstreet [Tue, 4 Oct 2016 03:22:17 +0000 (19:22 -0800)]
New on disk format - encryption

7 years agofewer workqueues
Kent Overstreet [Wed, 8 Feb 2017 00:41:52 +0000 (15:41 -0900)]
fewer workqueues

7 years agoAdd a command to dump filesystem metadata
Kent Overstreet [Fri, 3 Feb 2017 06:45:08 +0000 (21:45 -0900)]
Add a command to dump filesystem metadata

7 years agoupdate bcache code, fsck improvements
Kent Overstreet [Thu, 2 Feb 2017 03:16:42 +0000 (18:16 -0900)]
update bcache code, fsck improvements

7 years agolinux shim: return an error on failure to open
Kent Overstreet [Thu, 2 Feb 2017 23:41:21 +0000 (14:41 -0900)]
linux shim: return an error on failure to open

7 years agoFix initialization order bug
Kent Overstreet [Thu, 2 Feb 2017 21:57:48 +0000 (12:57 -0900)]
Fix initialization order bug

7 years agobcache in userspace; userspace fsck
Kent Overstreet [Sun, 8 Jan 2017 09:13:18 +0000 (00:13 -0900)]
bcache in userspace; userspace fsck

7 years agoadd support for maximum journal entry size
Kent Overstreet [Sun, 11 Dec 2016 23:45:48 +0000 (14:45 -0900)]
add support for maximum journal entry size

also rip out prototype crypto support code - real code is in the dev
branch, with the new superblock format

7 years agoadd dependency generation to make file
Kent Overstreet [Wed, 12 Oct 2016 01:50:54 +0000 (17:50 -0800)]
add dependency generation to make file

7 years agoprint filesystem size in bcache_super_print()
Kent Overstreet [Wed, 12 Oct 2016 01:44:03 +0000 (17:44 -0800)]
print filesystem size in bcache_super_print()

7 years agofinish ripping out libnih
Kent Overstreet [Thu, 6 Oct 2016 15:19:55 +0000 (07:19 -0800)]
finish ripping out libnih

7 years agobcache device_show now dumps superblocks
Kent Overstreet [Tue, 4 Oct 2016 09:10:24 +0000 (01:10 -0800)]
bcache device_show now dumps superblocks

7 years agobucket size must be a power of two
Kent Overstreet [Tue, 6 Sep 2016 02:20:21 +0000 (18:20 -0800)]
bucket size must be a power of two

7 years agoclang doesn't like nested functions
Kent Overstreet [Wed, 31 Aug 2016 00:31:34 +0000 (16:31 -0800)]
clang doesn't like nested functions

7 years agoDocumentation/makefile work
Kent Overstreet [Mon, 29 Aug 2016 02:00:50 +0000 (18:00 -0800)]
Documentation/makefile work

7 years agominimum number of buckets now 1024
Kent Overstreet [Fri, 26 Aug 2016 04:55:43 +0000 (20:55 -0800)]
minimum number of buckets now 1024

7 years agoRework option handling
Kent Overstreet [Wed, 24 Aug 2016 03:50:31 +0000 (19:50 -0800)]
Rework option handling

7 years agomaster key nonce
Kent Overstreet [Mon, 22 Aug 2016 06:16:27 +0000 (22:16 -0800)]
master key nonce

7 years agoEncryption support
Kent Overstreet [Wed, 17 Aug 2016 21:23:03 +0000 (13:23 -0800)]
Encryption support

8 years agodebify
Kent Overstreet [Tue, 26 Apr 2016 01:13:15 +0000 (17:13 -0800)]
debify

8 years agoendianness
Kent Overstreet [Fri, 15 Jan 2016 15:34:30 +0000 (06:34 -0900)]
endianness

8 years agobin, not sbin
Kent Overstreet [Fri, 15 Jan 2016 15:48:49 +0000 (06:48 -0900)]
bin, not sbin

8 years agoOn disk format updates
Kent Overstreet [Thu, 14 Jan 2016 07:18:22 +0000 (22:18 -0900)]
On disk format updates

8 years agoRedo lots of stuff
Kent Overstreet [Sat, 12 Mar 2016 06:18:42 +0000 (21:18 -0900)]
Redo lots of stuff

8 years agoDon't install udev hook - it's confusing with bcachefs
Kent Overstreet [Fri, 28 Aug 2015 17:04:02 +0000 (09:04 -0800)]
Don't install udev hook - it's confusing with bcachefs

8 years agoFix help for --compression-type
Kent Overstreet [Fri, 28 Aug 2015 10:06:01 +0000 (02:06 -0800)]
Fix help for --compression-type

8 years agoFix build error with libblkid usage
Mike Krinkin [Sun, 23 Aug 2015 18:38:56 +0000 (21:38 +0300)]
Fix build error with libblkid usage

9 years agoAdd support for setting data checksum type, compression type
Kent Overstreet [Fri, 19 Jun 2015 07:57:03 +0000 (00:57 -0700)]
Add support for setting data checksum type, compression type

9 years agoadd an option for writing old superblocks
Kent Overstreet [Mon, 11 May 2015 05:00:24 +0000 (22:00 -0700)]
add an option for writing old superblocks

9 years agorewrite
Kent Overstreet [Sat, 9 May 2015 01:13:38 +0000 (18:13 -0700)]
rewrite

9 years agoBetter default bucket size
Kent Overstreet [Mon, 30 Mar 2015 08:53:30 +0000 (01:53 -0700)]
Better default bucket size

9 years agoMajor refactoring, add new settings to bcacheadm format
Kent Overstreet [Sun, 29 Mar 2015 06:21:33 +0000 (23:21 -0700)]
Major refactoring, add new settings to bcacheadm format

9 years agoMinor cleanup
Kent Overstreet [Sun, 15 Mar 2015 22:49:05 +0000 (15:49 -0700)]
Minor cleanup

9 years agoRemove autotools stuff
Kent Overstreet [Sun, 15 Mar 2015 00:50:35 +0000 (17:50 -0700)]
Remove autotools stuff

9 years agobcache-tools: update for superblock changes
Slava Pestov [Fri, 13 Feb 2015 21:44:28 +0000 (13:44 -0800)]
bcache-tools: update for superblock changes

Change-Id: I660fef1366005377041cac5d75771d2fdc8c0824

9 years agobcacheadm: fix capacity command
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

9 years agobcacheadm: Handle missing arg in rm-dev
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

9 years agoAdd option to set btree node size, give it sane default
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

9 years agobcacheadm: print more info in query_dev
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

9 years agobcacheadm: add "list-cachesets --internal_uuid UUID" option
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

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2014.KERNEL.rk/bcache...
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-

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache...
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-

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache...
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-

9 years agoRevert "if cache_set uuid is given in format command, then put the same"
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

9 years agoDisplay new user_uuid instead of internal cache set uuid
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

9 years agoDo not stop scanning on a cache-device link is missing since
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

9 years agoif cache_set uuid is given in format command, then put the same
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

9 years agoCleanup, rip out more code, fix compiler warnings
Kent Overstreet [Tue, 27 Jan 2015 21:45:02 +0000 (13:45 -0800)]
Cleanup, rip out more code, fix compiler warnings

Change-Id: I76b410dc700a917d2717b1ceda0df061a1599144

9 years agoupdate stop ioctl
Kent Overstreet [Fri, 23 Jan 2015 00:50:27 +0000 (00:50 +0000)]
update stop ioctl

Change-Id: Ib1757baa0bcc48082cb36848b5f06da2cc401437

9 years agoUpdate for bcache superblock changes
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

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache...
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-

9 years agobcacheadm: add --writearound flag for testing, probably not useful
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

9 years agobcacheadm: fix --cache_replacement_policy flag
Slava Pestov [Fri, 16 Jan 2015 05:41:21 +0000 (21:41 -0800)]
bcacheadm: fix --cache_replacement_policy flag

Change-Id: Ic1f97df531345e1c4cb9a83f0fc5463718f56c60

9 years agoupdate for bcache header changes
Kent Overstreet [Thu, 15 Jan 2015 09:33:48 +0000 (09:33 +0000)]
update for bcache header changes

Change-Id: I5c64d438dac8bc28411f9a25e1be711477a3af80

9 years agobcacheadm: ioctl refactor
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>
9 years agobcacheadm: fix status command
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>
9 years agobcacheadm: set disk-failed command
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>
9 years agobcacheadm: fix status for forcefully pulled devs
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>
9 years agobcacheadm: fix variable bucket size input
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>
9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
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

9 years agoAdd Apple addendums to .gitignore
Rob Millner [Fri, 9 Jan 2015 20:08:00 +0000 (12:08 -0800)]
Add Apple addendums to .gitignore

Change-Id: I1b45829d872773db1b0f4aef2ea7f0f7eb70c423

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
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

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache...
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

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/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

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache...
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

9 years agobcacheadm: increase btree node size for large buckets
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>
9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
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

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.CONTROL/bcache...
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

9 years agobcacheadm: Fix bcacheadm status segfault if no devs given
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>
9 years agobcacheadm: fix status and query-devs
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>
9 years agobcacheadm: fix list-cachesets --list-devs
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>
9 years agobcacheadm: only fail csum check when -f is passed
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>
9 years agobcacheadm: add capacity command
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>
9 years agobcacheadm: add query-devs --brief command
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>
9 years agobcacheadm: add command to modify sysfs attributes for
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>
9 years agobcacheadm: fix status command
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>
9 years agobcacheadm: add-devs and rm-dev options
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>
9 years agobcacheadm fixes
Kent Overstreet [Sat, 6 Dec 2014 03:20:03 +0000 (19:20 -0800)]
bcacheadm fixes

Change-Id: I3f6024d54aee263ef843705a0e9a02869e2a53e9

9 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
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

9 years agoMerge 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

9 years agoexclude some files from rpm that gets installed
Claudio Fleiner [Sun, 28 Dec 2014 04:13:20 +0000 (20:13 -0800)]
exclude some files from rpm that gets installed

Change-Id: Id7b749358dcae30f448acc5c1c71e42b2687395b

9 years agoupdate version and build
Claudio Fleiner [Wed, 24 Dec 2014 18:18:26 +0000 (10:18 -0800)]
update version and build

Change-Id: I2f9e09ee6a927f7f89207914745ef50b6493e4b9

9 years agobcacheadm: Fix bcacheadm status segfault if no devs given
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>
9 years agoMerge ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools
Jacob Malevich [Fri, 19 Dec 2014 23:21:51 +0000 (15:21 -0800)]
Merge ssh://gits.daterainc.com:2984/project/2013.KERNEL/bcache-tools

9 years agobcacheadm: fix status and query-devs
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>