Description of problem: 自从引入这个提交之后“89dc5218d30b anolis: pstore: add multibackends support“,在pstore配置默认使能的情况下无法使用pstore文件系统 Version-Release number of selected component (if applicable): How reproducible: 必现 Steps to Reproduce: 1.make ARCH=x86_64 anolis_defconfig 2.make -j$(nproc) && make modules_install && make install 3.新内核启动 4.cat /proc/filesystems |grep pstore Actual results: 查询不到 Expected results: 默认使能的情况下可以查询到该文件系统 Additional info:
你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统 # cat /proc/filesystems | grep pstore nodev pstore # uname -r 5.10.134-15.an8.x86_64
(In reply to xiangzao from comment #1) > 你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统 > > # cat /proc/filesystems | grep pstore > nodev pstore > # uname -r > 5.10.134-15.an8.x86_64 未配置后端pstore文件系统就不可用这与上游社区的机制有差异,是否合理?
(In reply to yugart from comment #2) > (In reply to xiangzao from comment #1) > > 你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统 > > > > # cat /proc/filesystems | grep pstore > > nodev pstore > > # uname -r > > 5.10.134-15.an8.x86_64 > > 未配置后端pstore文件系统就不可用这与上游社区的机制有差异,是否合理? pstore文件系统的作用在于,将后端数据内容保存到pstore文件系统目录下给用户展示。如果不配置后端,那么空有文件系统没有任何意义,并且会对用户造成使能了pstore后端的误解。 你可以尝试配置一种后端,比如ramoops,在cmdline中添加类似的参数“ramoops.mem_address=0xb2000000 ramoops.mem_size=0x40000 ramoops.console_size=0x10000 ramoops.tty_size=0x20000 ramoops.ecc=0 ramoops.dump_oops=0”,在机器重启后,可以在/proc/filesystems 查看到pstore的同时,在/proc/fs下会生成pstore目录并且有ramoops的保存结果。
(In reply to yixingrui from comment #3) > (In reply to yugart from comment #2) > > (In reply to xiangzao from comment #1) > > > 你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统 > > > > > > # cat /proc/filesystems | grep pstore > > > nodev pstore > > > # uname -r > > > 5.10.134-15.an8.x86_64 > > > > 未配置后端pstore文件系统就不可用这与上游社区的机制有差异,是否合理? > > pstore文件系统的作用在于,将后端数据内容保存到pstore文件系统目录下给用户展示。 > 如果不配置后端,那么空有文件系统没有任何意义,并且会对用户造成使能了pstore后端的误解。 > > 你可以尝试配置一种后端,比如ramoops,在cmdline中添加类似的参数“ramoops.mem_address=0xb2000000 > ramoops.mem_size=0x40000 ramoops.console_size=0x10000 > ramoops.tty_size=0x20000 ramoops.ecc=0 > ramoops.dump_oops=0”,在机器重启后,可以在/proc/filesystems > 查看到pstore的同时,在/proc/fs下会生成pstore目录并且有ramoops的保存结果。 好的,了解了,谢谢
(In reply to yixingrui from comment #3) > pstore文件系统的作用在于,将后端数据内容保存到pstore文件系统目录下给用户展示。 > 如果不配置后端,那么空有文件系统没有任何意义,并且会对用户造成使能了pstore后端的误解。 > > 你可以尝试配置一种后端,比如ramoops,在cmdline中添加类似的参数“ramoops.mem_address=0xb2000000 > ramoops.mem_size=0x40000 ramoops.console_size=0x10000 > ramoops.tty_size=0x20000 ramoops.ecc=0 > ramoops.dump_oops=0”,在机器重启后,可以在/proc/filesystems > 查看到pstore的同时,在/proc/fs下会生成pstore目录并且有ramoops的保存结果。 这好像不太合理,不论是否支持单端还是多端与注册文件系统本身是没有关系的。关键这么一改就和其它内核行为不一样了。 anolis510现在实现是psback这个列表没初始化,就不让注册pstorefs,这2者之间好像不是必须的。就像以前的psinfo没有初始化,但是也不会影响registerfs。