最近遇到这样一个问题,我想在 asahi linux 上查看备份到 Proxmox Backup Server 里的目录,于是在 pve9 系统上交叉编译了 proxmox-backup-client ,执行时遇到这样的报错:
d@d-macbookair:~$ proxmox-backup-client mount host/test test.ppxar ~/mnt/0
Error: unable to read dynamic index 'test.mpxar.didx' - Invalid argument (os error 22)
d@d-macbookair:~$
这个报错我几乎已经确定是因为 asahi linux 使用 16KB 的页大小导致的,因为我用 4KB 页的 arm64 虚拟机测试这条命令是正常的,我想修改 proxmox-backup-client 的代码解决这个问题,但我对这个项目不熟悉,而且我一直缺少用 AI 写代码的经验(目前为止我只会用网页版本的 AI 写一些不是很复杂的代码,比如一些 bash 脚本,功能比较独立的 linux 内核模块等),想试试用 AI 来解决这个问题,但无法估计要花多少钱,也担心 AI 还没有能力解决这类问题,所以在尝试之前想先问一下有经验的 V 友,AI 适合用来解决这类问题吗?
1
mizuki9 13 小时 12 分钟前
不知道。不过 arm 的 4k 、16k 、64k 三种页大小,真是可以荼毒未来几十年的超级屎山设计。除了死得早的 MIPS & PowerPC ,再没有硬件架构会这样去设计
|
2
YanSeven 12 小时 58 分钟前 适合的,你在站内搜索 chatgpt team 拼车,或者闲鱼去买。最多 10 元每月。
然后使用 codex ,额度足够你把这个问题折腾好,只需 10 块钱。 |
3
wniming OP @YanSeven
codex 一次性就修复了这个问题,我用的是 gpt-5.4 ,免费账户,解决完这个问题还剩 84%额度,提示词如下: The current code will encounter the following error when executed on an arm64 16KB page machine: d@d-macbookair:~$ proxmox-backup-client mount host/test test.ppxar ~/mnt/0 Error: unable to read dynamic index 'test.mpxar.didx' - Invalid argument (os error 22) d@d-macbookair:~$ The current code can run on an arm64 machine with 4KB pages. Fix the code of proxmox-backup-client to enable it to run on 16KB page arm64 machines. codex 修改的代码打成 patch 有 390 行。 我现在才知道 AI 的编程能力有多强了,这问题要是我自己研究都不知道要搞多久。 |