Fuse lib 示例删除了我的主文件夹

Fuse lib example deleted my home folder

我正在玩 https://github.com/libfuse/libfuse/blob/master/example/passthrough.c 的修改版本,并将它安装在我的主目录 (home/joao/mnt) 的一个文件夹中。在没有意识到我已经 运行 的情况下,我重新 运行 保险丝程序并且我的计算机停止工作。我重新启动了系统,然后我看到我的主文件夹没有以前的大部分文件。我可以做些什么来恢复我原来的状态吗?

我不是专家,但恐怕你已经失去了一切,除非你有你的系统的备份......我只能给出一个提示。在 passthrough.c 中据说

This file system mirrors the existing file system hierarchy of the
system, starting at the root file system. This is implemented by just "passing through" all requests to the corresponding user-space libc functions. Its performance is terrible.

因此,如果我没理解错的话,您对安装的直通 FS 应用的每项更改都会影响您的主目录。或者,因为它反映了你的主目录,你可以通过将它安装在那里来进行漂亮的递归,从而破坏一些东西。