代码: 全选
root@debian:/tmp# echo /home/atom/swap_single > /sys/fs/bcache/register
bash: echo: write error: Invalid argument
代码: 全选
root@debian:/home/username# stat ./swap_single
File: ‘./swap_single’
Size: 4294967296 Blocks: 8388616 IO Block: 4096 regular file
Device: 802h/2050d Inode: 990234 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ username) Gid: ( 1000/ username)
Access: 2016-05-04 19:19:48.509895830 +0800
Modify: 2016-05-04 19:19:47.497895792 +0800
Change: 2016-05-04 19:19:47.497895792 +0800
Birth: -
可能我需要loop?
试试看,如果成功就把标题改为"已解决"
Wed May 4 21:24:04 CST 2016补充:
用losetup把文件挂到loopX设备上,然后让bcache对loop设备进行操作就好