]> git.sesse.net Git - bcachefs-tools-debian/log
bcachefs-tools-debian
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>
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 agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
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

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 agoSet the label field in the cache set superblock if label is
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

9 years agomanual merge
Claudio Fleiner [Mon, 8 Dec 2014 08:57:16 +0000 (00:57 -0800)]
manual merge

Change-Id: I75355d4671c46edbb2a6a64a7a8b6217d02d4c12

9 years agobcacheadm fixes
Kent Overstreet [Sat, 6 Dec 2014 03:20:03 +0000 (19:20 -0800)]
bcacheadm fixes

Change-Id: I3f6024d54aee263ef843705a0e9a02869e2a53e9

9 years agorpmify
Claudio Fleiner [Fri, 5 Dec 2014 23:11:28 +0000 (15:11 -0800)]
rpmify

Change-Id: Iffa28034d4228366565c762b4103fae2a54b2518

9 years agoRemove exit points from libbache and return error messages instead.
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>
9 years agoFix string parsing
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>
9 years agobcacheadm unregister devices
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>
9 years agobcacheadm: add ability to find a dev uuid within a cacheset
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>
9 years agobcacheadm: dev path parsing
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>
9 years agoOption for returning only the uuid of the dev when doing a
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>
9 years agobcache query-dev fixes, and don't print the sb out for status
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>
9 years agobcacheadm: list-cachesets --list-devs option
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>
9 years agobcacheadm: register bcache ioctl already takes an argv, no need to parse it
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>
9 years agobcacheadm: fix tiering and backing device bugs
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>
9 years agobcacheadm: format bug fixes
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>
9 years agoInitial template for bcacheadm man page.
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>
9 years agoUpdate some bcacheadm error messages
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>
9 years agobcacheadm stats, add flags
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>
9 years agobcacheadm status [FLAGS] <list of stats>
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>
9 years agobcacheadm status <list of devs>
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>
9 years agobcacheadm add list-cachesets and query-devs
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>
9 years agobcacheadm tool
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>
9 years agoAdd multiple bucket_sizes to make-bcache
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>
9 years agoset btree_node_size for the cache_sb based on bucket_size
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>
9 years agoCreate libbcache.a.
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>
9 years agoAdd crc32c support
Kent Overstreet [Thu, 11 Sep 2014 22:55:39 +0000 (15:55 -0700)]
Add crc32c support

Change-Id: I9f830560b25cc84d77f46e3670ed07c05f44adc9

9 years agoSuperblock version 6
Kent Overstreet [Tue, 26 Aug 2014 02:11:59 +0000 (19:11 -0700)]
Superblock version 6

Change-Id: Iba976c8c5a4a91dcac06145471fc70baa6a6393e

9 years agoChanged the keyword register_devices to register
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>
9 years agoadd missing dependency linux-headers
cmf [Thu, 7 Aug 2014 16:57:31 +0000 (09:57 -0700)]
add missing dependency linux-headers

Change-Id: I9dea8e70a60b11d0626b06f20f0dc3471d945ad0

9 years agoBetter usage message.
Surbhi Palande [Tue, 5 Aug 2014 23:19:48 +0000 (16:19 -0700)]
Better usage message.

Invoking bcachectl will now show you a help
message and a usage indicator.

Change-Id: I9f6163b196b32723c21ddbce04d4a20015173a1a
Signed-off-by: Surbhi Palande <sap@daterainc.com>
9 years agoAdd bcachectl: to start bcache, add and remove devices.
Surbhi Palande [Tue, 5 Aug 2014 18:25:20 +0000 (11:25 -0700)]
Add bcachectl: to start bcache, add and remove devices.

Useful for lifecycle management of bcache devices.

Change-Id: Icdcb559786ab0557dbe7f2a30b5dbeacf7dad665
Signed-off-by: Surbhi Palande <sap@daterainc.com>
10 years agomake-bcache.c: Added support for storing "label" information for the
rk [Tue, 3 Jun 2014 17:24:10 +0000 (10:24 -0700)]
make-bcache.c:  Added support for storing "label" information for the
                the devices in the super-block.
bcache.h:       Bring version information to the latest kernel version.
bcache-super-show.c: Add setsize for caching devices. This indicates
                     the number of devices in caching set.

Testing done:

1.0  make-bcache with --label option and checking back to see if
     bcache-super-show shows the devices.
2.0  bcache-super-show does not bail if version is 5.
3.0  bcache-super-show shows the correct setsize.

Change-Id: If0f1ec6204b233b34ff4c8a57a8809d2c8dbe3e3

10 years agomake-bcache: update --help
Slava Pestov [Thu, 1 May 2014 18:00:30 +0000 (11:00 -0700)]
make-bcache: update --help

10 years agoRHEL 7 dependencies
Rob Millner [Fri, 28 Mar 2014 23:51:17 +0000 (23:51 +0000)]
RHEL 7 dependencies

10 years agofix Makefile.am to use pkg-config
Kent Overstreet [Thu, 20 Mar 2014 21:28:57 +0000 (14:28 -0700)]
fix Makefile.am to use pkg-config

10 years agoAdd support for setting cache tier field
Kent Overstreet [Thu, 20 Mar 2014 20:46:04 +0000 (13:46 -0700)]
Add support for setting cache tier field

10 years agoMerge remote-tracking branch 'remotes/angband/master'
Kent Overstreet [Thu, 20 Mar 2014 20:38:08 +0000 (13:38 -0700)]
Merge remote-tracking branch 'remotes/angband/master'

Conflicts:
make-bcache.c

10 years agoSubstitute proper package name
Rob Millner [Tue, 18 Mar 2014 19:15:39 +0000 (19:15 +0000)]
Substitute proper package name

10 years agoMerge ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
Automation [Wed, 22 Jan 2014 23:32:21 +0000 (15:32 -0800)]
Merge ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools

10 years agoadd missing spec files
Claudio Fleiner [Mon, 25 Nov 2013 21:39:35 +0000 (21:39 +0000)]
add missing spec files

10 years agoMerge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools
Nicholas Swenson [Fri, 22 Nov 2013 01:41:18 +0000 (17:41 -0800)]
Merge branch 'master' of ssh://gits.daterainc.com:2984/project/2013.MAIN/bcache-tools

Conflicts:
.gitignore

10 years ago.gitignore: tags, scope
Nicholas Swenson [Sun, 3 Nov 2013 07:55:22 +0000 (00:55 -0700)]
.gitignore: tags, scope

Signed-off-by: Nicholas Swenson <nks@daterainc.com>
10 years agobcache: writes correct superblock for multiple cache devs
Nicholas Swenson [Thu, 31 Oct 2013 23:15:49 +0000 (16:15 -0700)]
bcache: writes correct superblock for multiple cache devs

Signed-off-by: Nicholas Swenson <nks@daterainc.com>
10 years agoAdding autotools support to bcache-tools
Claudio Fleiner [Tue, 29 Oct 2013 05:44:07 +0000 (22:44 -0700)]
Adding autotools support to bcache-tools

thie enables building it in a different directory, more
flexible install and configure options, and should make it
easier to eventualy create deb and rpm packages. Additionally
this makes it much easier to build and test this package
as it now behaves the same way as others we are using.

10 years agoSimplify 69-bcache.rules
Rolf Fokkens [Thu, 10 Oct 2013 20:53:02 +0000 (22:53 +0200)]
Simplify 69-bcache.rules

Gabriel: simplified a bit further

10 years agoAdd an INSTALL macro to the Makefile
Rolf Fokkens [Sun, 6 Oct 2013 21:13:05 +0000 (23:13 +0200)]
Add an INSTALL macro to the Makefile

10 years agoAdd DRACUTLIBDIR to Makefile
Rolf Fokkens [Sun, 6 Oct 2013 20:45:41 +0000 (22:45 +0200)]
Add DRACUTLIBDIR to Makefile

10 years agoAdd a dracut module for bcache
Rolf Fokkens [Sun, 6 Oct 2013 18:30:07 +0000 (20:30 +0200)]
Add a dracut module for bcache

10 years agoMove probe-bcache to UDEVLIBDIR
Gabriel [Sun, 6 Oct 2013 09:07:20 +0000 (11:07 +0200)]
Move probe-bcache to UDEVLIBDIR

10 years agoudev: Fit into the standard rule sequence
Gabriel [Sat, 5 Oct 2013 19:16:21 +0000 (21:16 +0200)]
udev: Fit into the standard rule sequence

Move the rule to run a bit later, after
the standard udev rules have called blkid.

Don't run blkid manually, and run probe-bcache
as a fallback which can be patched out in a
package that depends on util-linux 2.24+.

probe-bcache: bail if libblkid finds anything
Preserve our last-resort safety check here
in case earlier rules fail to call blkid.

10 years agosuper-show: Print label
Gabriel [Fri, 5 Jul 2013 21:59:21 +0000 (23:59 +0200)]
super-show: Print label

10 years agosuper-show: Show sync mode and cache replacement policy
Gabriel [Fri, 27 Sep 2013 10:05:46 +0000 (12:05 +0200)]
super-show: Show sync mode and cache replacement policy

10 years agoInstall the initramfs hook in /usr/share not /etc
Gabriel [Sat, 21 Sep 2013 23:13:36 +0000 (01:13 +0200)]
Install the initramfs hook in /usr/share not /etc

10 years agoUse the absolute path to modprobe
Gabriel [Sat, 21 Sep 2013 23:12:52 +0000 (01:12 +0200)]
Use the absolute path to modprobe

This is necessary on Fedora, according to Rolf Fokkens.

10 years agomake-bcache: Prevent stray superblocks
Gabriel [Sat, 17 Aug 2013 16:56:50 +0000 (18:56 +0200)]
make-bcache: Prevent stray superblocks

Fail if the device has any leftover superblock or partition table label.

Add a --wipe-bcache flag to overwrite bcache superblocks and recommend
wipefs for non-bcache superblocks.

Once the device is safe to write, always zero immediately before the
bcache superblock.

Make sure errors go to stderr.  Use pkg-config.

10 years agoUse register_quiet for udev hook
Kent Overstreet [Mon, 26 Aug 2013 21:46:19 +0000 (14:46 -0700)]
Use register_quiet for udev hook

10 years agoMerge git://evilpiepirate.org/~kent/bcache-tools
Claudio Fleiner [Mon, 12 Aug 2013 17:39:08 +0000 (10:39 -0700)]
Merge git://evilpiepirate.org/~kent/bcache-tools

Conflicts:
README - fixed

10 years agoCreating package bcache-tools
Claudio Fleiner [Mon, 12 Aug 2013 17:36:11 +0000 (10:36 -0700)]
Creating package bcache-tools

10 years agoDon't register if a non-bcache superblock is found as well
Gabriel [Sun, 21 Jul 2013 18:17:17 +0000 (20:17 +0200)]
Don't register if a non-bcache superblock is found as well

10 years agofix make-bcache to use logical_block_size, not stat.st_blocksize
Lars Ellenberg [Wed, 17 Jul 2013 10:39:14 +0000 (12:39 +0200)]
fix make-bcache to use logical_block_size, not stat.st_blocksize

As discussed on irc yesterday.

Cheers,
Lars

From 791a4b7b2c25e21ffeb4184da5e61f18cde86246 Mon Sep 17 00:00:00 2001
From: Lars Ellenberg <lars@linbit.com>
Date: Wed, 17 Jul 2013 11:49:12 +0200
Subject: [PATCH] make-bcache: fix guessing of "block_size" to use BLKSSZGET

Using stat.st_blocksize is wrong:
that is the linux buffer cache granularity,
it is tunable, and defaults to 4k.

This caused bcache to default to create devices with
logical_block_size = 4k, potentially breaking otherwise healthy disk
or file system images unnecessarily.

e.g. some xfs image previously created with 512 byte "sector size"
would, once bcache'd, refuse to mount with
mount: function not implemented
device supports 4096 byte sectors (not 512)

We want the logical_block_size here.

10 years agobcache-tools are GPL
Kent Overstreet [Thu, 27 Jun 2013 01:42:39 +0000 (18:42 -0700)]
bcache-tools are GPL

11 years agoudev: Add /dev/bcache/by-label symlinks to cached devices
Gabriel [Sat, 8 Jun 2013 23:12:40 +0000 (01:12 +0200)]
udev: Add /dev/bcache/by-label symlinks to cached devices

11 years agoudev: Persistent names for cached devices
Gabriel [Sat, 8 Jun 2013 01:00:57 +0000 (03:00 +0200)]
udev: Persistent names for cached devices

Add /dev/bcache/by-uuid/ symlinks to cached devices.

11 years agosuper-show: Minor manpage clarification
Gabriel [Fri, 7 Jun 2013 12:51:43 +0000 (14:51 +0200)]
super-show: Minor manpage clarification

11 years agosuper-show: Add a manpage
Gabriel [Wed, 5 Jun 2013 19:36:28 +0000 (21:36 +0200)]
super-show: Add a manpage

Taken from tstrickx@rootcu.be's debianisation.

11 years agosuper-show: show detached/clean/dirty/inconsistent status
Gabriel [Wed, 1 May 2013 17:20:03 +0000 (19:20 +0200)]
super-show: show detached/clean/dirty/inconsistent status

11 years agosuper-show: print cache mode (writethrough, writeback, writearound, none)
Gabriel [Wed, 1 May 2013 17:15:18 +0000 (19:15 +0200)]
super-show: print cache mode (writethrough, writeback, writearound, none)

11 years agosuper-show: don't show cache_count
Gabriel [Wed, 1 May 2013 17:25:15 +0000 (19:25 +0200)]
super-show: don't show cache_count

This is a cache-set property, but not terribly useful.
Showing it on backing devices was also incorrect.

11 years agosuper-show: show more cache-related information
Gabriel [Wed, 1 May 2013 15:12:57 +0000 (17:12 +0200)]
super-show: show more cache-related information

Only show nbuckets and nr_this_dev on cache devices;
explain nbuckets' relation to device size by printing
both total_sectors (superblock included) and
cache_sectors (superblock excluded).

11 years agosuper-show: make the version annotation more terse
Gabriel [Wed, 1 May 2013 14:25:22 +0000 (16:25 +0200)]
super-show: make the version annotation more terse

11 years agomake-bdev: print the correct offset in the default case
Gabriel [Fri, 26 Apr 2013 16:50:53 +0000 (18:50 +0200)]
make-bdev: print the correct offset in the default case

11 years agoGet blocksize from the devices if it's not specified
Kent Overstreet [Wed, 24 Apr 2013 00:43:47 +0000 (17:43 -0700)]
Get blocksize from the devices if it's not specified

11 years agoUpdate data offset format and warn about the previous one.
Gabriel [Sat, 9 Mar 2013 13:58:57 +0000 (14:58 +0100)]
Update data offset format and warn about the previous one.

Also update the macro to select a bdev.
Also reindent.

11 years agouse SB_JOURNAL_BUCKETS for superblock
Kent Overstreet [Fri, 12 Apr 2013 18:37:33 +0000 (11:37 -0700)]
use SB_JOURNAL_BUCKETS for superblock

11 years agoTrivial build fix.
Gabriel [Fri, 12 Apr 2013 00:30:04 +0000 (02:30 +0200)]
Trivial build fix.

11 years agoAdd a flag to pick the cache set uuid.
Gabriel [Wed, 10 Apr 2013 06:28:16 +0000 (08:28 +0200)]
Add a flag to pick the cache set uuid.

11 years agoRegister devices with just udev.
Gabriel [Thu, 11 Apr 2013 14:44:03 +0000 (16:44 +0200)]
Register devices with just udev.

This means bcache devices will be registered earlier and in all
cases, not just when the rootfs fails to mount.

The initramfs hook is still there to ensure the bcache module
and udev rules are shipped if an initramfs is used.

11 years agoUpdate for new superblock version for data_offset
Kent Overstreet [Thu, 11 Apr 2013 23:56:15 +0000 (16:56 -0700)]
Update for new superblock version for data_offset

11 years agoFix option parsing so that passing --bucket_size after the device works
Kent Overstreet [Tue, 9 Apr 2013 20:29:06 +0000 (13:29 -0700)]
Fix option parsing so that passing --bucket_size after the device works

This makes supporting -U more annoying; dropping that for the moment,
unless someone complains

11 years agoUse uppercase hex when showing csum and expected.
Gabriel [Tue, 12 Mar 2013 16:01:49 +0000 (17:01 +0100)]
Use uppercase hex when showing csum and expected.

11 years agoShow the writeback flag and the discard flag.
Gabriel [Sun, 10 Mar 2013 10:04:10 +0000 (11:04 +0100)]
Show the writeback flag and the discard flag.

11 years agoVersion cleanup.
Gabriel [Sun, 10 Mar 2013 10:03:59 +0000 (11:03 +0100)]
Version cleanup.

11 years agoFix offsets, cache and backing are two different cases.
Gabriel [Sat, 9 Mar 2013 14:51:17 +0000 (15:51 +0100)]
Fix offsets, cache and backing are two different cases.

11 years agoAdd a command to display a bcache superblock.
Gabriel [Sat, 9 Mar 2013 12:22:24 +0000 (13:22 +0100)]
Add a command to display a bcache superblock.

11 years agoDon't error out if the distro isn't using initramfs
Kent Overstreet [Tue, 22 Jan 2013 21:26:53 +0000 (13:26 -0800)]
Don't error out if the distro isn't using initramfs

11 years agoBetter validation, and use O_EXCL when opening block device
Kent Overstreet [Wed, 21 Nov 2012 23:31:49 +0000 (15:31 -0800)]
Better validation, and use O_EXCL when opening block device

11 years agoChange default blocksize to one sector
Kent Overstreet [Wed, 15 Aug 2012 20:04:46 +0000 (13:04 -0700)]
Change default blocksize to one sector

11 years agoFix the initramfs script
Kent Overstreet [Fri, 13 Jul 2012 07:52:52 +0000 (00:52 -0700)]
Fix the initramfs script

12 years agoUpdate initramfs probe script
Kent Overstreet [Wed, 11 Apr 2012 22:33:40 +0000 (15:33 -0700)]
Update initramfs probe script

12 years agobcache-tools: probe-bcache.8 man page
Dmitry Smirnov [Thu, 16 Feb 2012 02:32:44 +0000 (13:32 +1100)]
bcache-tools: probe-bcache.8 man page

Hi Kent,

please find a little patch (attached) to introduce probe-bcache.8 man page to
bcache-tools.

Thank you.

Cheers,
Dmitry.

From 0ff7680042622e356516739936095cb4eab02de6 Mon Sep 17 00:00:00 2001
From: Dmitry Smirnov <onlyjob@member.fsf.org>
Date: Thu, 16 Feb 2012 13:23:00 +1100
Subject: [PATCH] added probe-bcache.8 man page