mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
10 lines
167 B
Bash
10 lines
167 B
Bash
#!/bin/sh -e
|
|
|
|
for i in `ls /sys/dev/block/`; do
|
|
DEV=/tmp/bcache_dev
|
|
|
|
mknod $DEV b `echo $i|sed -e 's/:/ /'`
|
|
echo $DEV > /sys/fs/bcache/register_quiet
|
|
rm $DEV
|
|
done
|