Bionic verification:
$ apt changelog bcache-tools | head -10
bcache-tools (1.0.8-2ubuntu0.18.04.1) bionic; urgency=medium
[ Ryan Harper ] * Add helper script to read bcache devs superblock (LP: #1861941)
-- Rafael David Tinoco <email address hidden> Wed, 05 Aug 2020 17:44:05 -0300
bcache-tools (1.0.8-2build1) artful; urgency=medium
----
$ dpkg-query -f '${Package}###${Version}\n' -W 'bcache-tools' bcache-tools###1.0.8-2ubuntu0.18.04.1
---- $ sudo ./test-bcache.sh /mnt is a mountpoint /dev/bcache0: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef writing 1 to /sys/class/block/bcache0/bcache/stop writing 1 to /sys/fs/bcache/60412675-9103-47b0-9794-91fcfb12d50d/stop /dev/vdc: 16 bytes were erased at offset 0x00001018 (bcache): c6 85 73 f6 4e 1a 45 ca 82 65 f5 7f 48 ba 6d 81 10+0 records in 10+0 records out 10485760 bytes (10 MB, 10 MiB) copied, 0.0173157 s, 606 MB/s /dev/vdb: 16 bytes were erased at offset 0x00001018 (bcache): c6 85 73 f6 4e 1a 45 ca 82 65 f5 7f 48 ba 6d 81 10+0 records in 10+0 records out 10485760 bytes (10 MB, 10 MiB) copied, 0.00634546 s, 1.7 GB/s UUID: c3758ea3-0e2c-42e3-bb77-da27292d2476 Set UUID: b2b21f55-3599-461a-b162-8377d85fbc34 version: 0 nbuckets: 2048 block_size: 1 bucket_size: 1024 nr_in_set: 1 nr_this_dev: 0 first_bucket: 1 UUID: f4001b7e-386e-4ca3-a5e0-d53f100d156f Set UUID: b2b21f55-3599-461a-b162-8377d85fbc34 version: 1 block_size: 1 data_offset: 16 /dev/vdc tee: /sys/fs/bcache/register: Invalid argument /dev/vdb tee: /sys/fs/bcache/register: Invalid argument total 0 drwxr-xr-x 2 root root 60 Aug 21 14:03 . drwxr-xr-x 3 root root 60 Aug 21 14:03 .. lrwxrwxrwx 1 root root 13 Aug 21 14:03 f4001b7e-386e-4ca3-a5e0-d53f100d156f -> ../../bcache0 Creating filesystems on bcache0 mke2fs 1.44.1 (24-Mar-2018) Discarding device blocks: done Creating filesystem with 262142 4k blocks and 65536 inodes Filesystem UUID: 4ade91a9-6176-4a93-a34f-158fa08d0091 Superblock backups stored on blocks: 32768, 98304, 163840, 229376
Allocating group tables: done Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done
mounting bcache0 to /mnt total 0 drwxr-xr-x 2 root root 60 Aug 21 14:03 . drwxr-xr-x 3 root root 60 Aug 21 14:03 .. lrwxrwxrwx 1 root root 13 Aug 21 14:03 f4001b7e-386e-4ca3-a5e0-d53f100d156f -> ../../bcache0 Everything OK ----
Bionic verification:
$ apt changelog bcache-tools | head -10
bcache-tools (1.0.8- 2ubuntu0. 18.04.1) bionic; urgency=medium
[ Ryan Harper ]
* Add helper script to read bcache devs superblock (LP: #1861941)
-- Rafael David Tinoco <email address hidden> Wed, 05 Aug 2020 17:44:05 -0300
bcache-tools (1.0.8-2build1) artful; urgency=medium
----
$ dpkg-query -f '${Package} ###${Version} \n' -W 'bcache-tools' tools## #1.0.8- 2ubuntu0. 18.04.1
bcache-
---- block/bcache0/ bcache/ stop bcache/ 60412675- 9103-47b0- 9794-91fcfb12d5 0d/stop 0e2c-42e3- bb77-da27292d24 76 3599-461a- b162-8377d85fbc 34 386e-4ca3- a5e0-d53f100d15 6f 3599-461a- b162-8377d85fbc 34 bcache/ register: Invalid argument bcache/ register: Invalid argument 386e-4ca3- a5e0-d53f100d15 6f -> ../../bcache0 6176-4a93- a34f-158fa08d00 91
$ sudo ./test-bcache.sh
/mnt is a mountpoint
/dev/bcache0: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
writing 1 to /sys/class/
writing 1 to /sys/fs/
/dev/vdc: 16 bytes were erased at offset 0x00001018 (bcache): c6 85 73 f6 4e 1a 45 ca 82 65 f5 7f 48 ba 6d 81
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0173157 s, 606 MB/s
/dev/vdb: 16 bytes were erased at offset 0x00001018 (bcache): c6 85 73 f6 4e 1a 45 ca 82 65 f5 7f 48 ba 6d 81
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.00634546 s, 1.7 GB/s
UUID: c3758ea3-
Set UUID: b2b21f55-
version: 0
nbuckets: 2048
block_size: 1
bucket_size: 1024
nr_in_set: 1
nr_this_dev: 0
first_bucket: 1
UUID: f4001b7e-
Set UUID: b2b21f55-
version: 1
block_size: 1
data_offset: 16
/dev/vdc
tee: /sys/fs/
/dev/vdb
tee: /sys/fs/
total 0
drwxr-xr-x 2 root root 60 Aug 21 14:03 .
drwxr-xr-x 3 root root 60 Aug 21 14:03 ..
lrwxrwxrwx 1 root root 13 Aug 21 14:03 f4001b7e-
Creating filesystems on bcache0
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done
Creating filesystem with 262142 4k blocks and 65536 inodes
Filesystem UUID: 4ade91a9-
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
mounting bcache0 to /mnt 386e-4ca3- a5e0-d53f100d15 6f -> ../../bcache0
total 0
drwxr-xr-x 2 root root 60 Aug 21 14:03 .
drwxr-xr-x 3 root root 60 Aug 21 14:03 ..
lrwxrwxrwx 1 root root 13 Aug 21 14:03 f4001b7e-
Everything OK
----