DragonOS icon indicating copy to clipboard operation
DragonOS copied to clipboard

[BUG REPORT] `test-mount`测试程序,如果根文件系统没有/mnt`文件夹,那么第一次执行会失败,重启后执行成功。

Open fslongjin opened this issue 1 year ago • 3 comments

描述错误 test-mount测试程序,如果根文件系统没有/mnt`文件夹,那么第一次执行会失败,重启后执行成功。

我猜测是文件系统创建多个文件夹的时候,可能有点数据不一致的现象。需要进一步定位。

请填写您的电脑的信息:

  • 操作系统及版本:Ubuntu 22.04
  • DragonOS版本:cae6182

重现步骤 重现行为的步骤:

  1. 删除bin/disk-x86_64.img
  2. 编译运行dragonos
  3. 在DragonOS内执行test-mount
  4. 然后会报错挂载失败。
  5. 重启dragonos
  6. 再次执行test-mount
  7. 挂载成功。

期望行为 第一次就能挂载成功。

fslongjin avatar Oct 20 '24 09:10 fslongjin

我在7c28051版本似乎没遇到这个问题 图片

BrahmaMantra avatar Nov 12 '24 06:11 BrahmaMantra

同,on ff76b0fcb886af9d15e3ef1c1bb61122541f6b75 没有遇到此问题

Samuka007 avatar Nov 18 '24 07:11 Samuka007

要删除掉bin目录再运行才会。这个问题我估摸着是pagecache的那个写入未同步导致的。 https://github.com/DragonOS-Community/DragonOS/pull/1005

fslongjin avatar Nov 19 '24 17:11 fslongjin