AgeCommit message (Collapse)Author
2013-09-22Install the initramfs hook in /usr/share not /etcv1.0.1Gabriel
2013-09-22Use the absolute path to modprobeGabriel
This is necessary on Fedora, according to Rolf Fokkens.
2013-09-01make-bcache: Prevent stray superblocksGabriel
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.
2013-08-26Use register_quiet for udev hookKent Overstreet
2013-07-21Don't register if a non-bcache superblock is found as wellGabriel
2013-07-17fix make-bcache to use logical_block_size, not stat.st_blocksizeLars Ellenberg
As discussed on irc yesterday. Cheers, Lars From 791a4b7b2c25e21ffeb4184da5e61f18cde86246 Mon Sep 17 00:00:00 2001 From: Lars Ellenberg <> 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.
2013-07-17bcache-tools are GPLKent Overstreet
2013-06-09udev: Add /dev/bcache/by-label symlinks to cached devicesGabriel
2013-06-08udev: Persistent names for cached devicesGabriel
Add /dev/bcache/by-uuid/ symlinks to cached devices.
2013-06-07super-show: Minor manpage clarificationGabriel
2013-06-05super-show: Add a manpageGabriel
Taken from's debianisation.
2013-05-08super-show: show detached/clean/dirty/inconsistent statusGabriel
2013-05-08super-show: print cache mode (writethrough, writeback, writearound, none)Gabriel
2013-05-08super-show: don't show cache_countGabriel
This is a cache-set property, but not terribly useful. Showing it on backing devices was also incorrect.
2013-05-08super-show: show more cache-related informationGabriel
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).
2013-05-08super-show: make the version annotation more terseGabriel
2013-04-30make-bdev: print the correct offset in the default caseGabriel
2013-04-23Get blocksize from the devices if it's not specifiedKent Overstreet
2013-04-15Update data offset format and warn about the previous one.Gabriel
Also update the macro to select a bdev. Also reindent.
2013-04-12use SB_JOURNAL_BUCKETS for superblockKent Overstreet
2013-04-12Trivial build fix.Gabriel
2013-04-11Add a flag to pick the cache set uuid.Gabriel
2013-04-11Register devices with just udev.Gabriel
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.
2013-04-11Update for new superblock version for data_offsetKent Overstreet
2013-04-09Fix option parsing so that passing --bucket_size after the device worksKent Overstreet
This makes supporting -U more annoying; dropping that for the moment, unless someone complains
2013-03-12Use uppercase hex when showing csum and expected.Gabriel
2013-03-10Show the writeback flag and the discard flag.Gabriel
2013-03-10Version cleanup.Gabriel
2013-03-09Fix offsets, cache and backing are two different cases.Gabriel
2013-03-09Add a command to display a bcache superblock.Gabriel
2013-01-22Don't error out if the distro isn't using initramfsKent Overstreet
2012-11-21Better validation, and use O_EXCL when opening block deviceKent Overstreet
2012-08-15Change default blocksize to one sectorKent Overstreet
2012-07-13Fix the initramfs scriptKent Overstreet
2012-04-11Update initramfs probe scriptKent Overstreet
2012-02-16bcache-tools: probe-bcache.8 man pageDmitry Smirnov
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 <> Date: Thu, 16 Feb 2012 13:23:00 +1100 Subject: [PATCH] added probe-bcache.8 man page
2012-01-18Add --discard and --cache_replacement_policyKent Overstreet
2011-11-21Merge branch 'master' of Overstreet
2011-11-21Fix more warnings during 32bit compilationGwendal Grignou
"bcache.c:120: warning: integer constant is too large for 'long' type" "bcache.c:128: warning: integer constant is too large for 'long' type" Signed-off-by: Gwendal Grignou <>
2011-11-20Makefile to follow GNU Make best practiceDmitry Smirnov
2011-09-01The --writeback switch did nothing; fixedKent Overstreet
2011-08-16Fix warning during 32bit tool chain compilationGwendal Grignou
"bcache.c:128: warning: integer constant is too large for 'long' type" Signed-off-by: Gwendal Grignou <>
2011-08-09Add more long options and improve usage()Kent Overstreet
2011-07-31Add a --writeback switch to make-bcacheKent Overstreet
2011-07-26Don't write journal bucketsKent Overstreet
2011-07-26Add checksum to superblockRicky Benitez
Add checksum to the superblock to prevent warning messages when registering devices.
2011-07-25Give make-bcache the ability to format multiple devices at onceKent Overstreet
2011-07-25New superblock formatKent Overstreet
2011-07-12Bcache tools are now explicitly gpl v2.Kent Overstreet
2011-07-12Add an option for setting the set uuidKent Overstreet