[已解决]bcache 注册backing设备失败?

最大的社区版本,Ubuntu的发源地
回复
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

[已解决]bcache 注册backing设备失败?

#1

帖子 科学之子 » 2016-05-04 19:36

代码: 全选

root@debian:/tmp# echo /home/atom/swap_single > /sys/fs/bcache/register
bash: echo: write error: Invalid argument
然后dmesg:

代码: 全选

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: -

Wed May 4 21:11:33 CST 2016补充:
可能我需要loop?
试试看,如果成功就把标题改为"已解决"
Wed May 4 21:24:04 CST 2016补充:
用losetup把文件挂到loopX设备上,然后让bcache对loop设备进行操作就好
回复