cokemine / ServerStatus-goclient

The client of ServerStatus-Hotaru written in Go
MIT License
74 stars 27 forks source link

希望增加对 OpenWrt 磁盘空间的识别! #24

Open ariakeumi opened 1 year ago

ariakeumi commented 1 year ago

Python psutil 客户端能识别,不过有台硬路由实在装不下 Python ...

屏幕截图 2022-11-24 050101

cokemine commented 1 year ago

cat /proc/1/mountinfo 看看

ariakeumi commented 1 year ago

cat /proc/1/mountinfo看看

12 22 253:0 / /rom ro,relatime - squashfs /dev/root ro 13 22 0:5 / /proc rw,nosuid,nodev,noexec,noatime - proc proc rw 14 22 0:13 / /sys rw,nosuid,nodev,noexec,noatime - sysfs sysfs rw 15 14 0:14 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime - cgroup2 cgroup2 rw,nsdelegate 18 22 0:17 / /tmp rw,nosuid,nodev,noatime - tmpfs tmpfs rw 19 22 0:18 / /overlay rw,noatime - ubifs /dev/ubi0_1 rw,assert=read-only,ubi=0,vol=1 22 1 0:19 / / rw,noatime - overlay overlayfs:/overlay rw,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work 17 22 0:16 / /dev rw,nosuid,relatime - tmpfs tmpfs rw,size=512k,mode=755 23 17 0:21 / /dev/pts rw,nosuid,noexec,relatime - devpts devpts rw,mode=600,ptmxmode=000 24 14 0:6 / /sys/kernel/debug rw,noatime - debugfs debugfs rw 25 14 0:22 / /sys/fs/bpf rw,nosuid,nodev,noexec,noatime - bpf none rw,mode=700 26 14 0:23 / /sys/fs/pstore rw,noatime - pstore pstore rw 28 18 0:25 / /tmp/run/blockd rw,relatime - autofs mountd(pid2295) rw,fd=7,pgrp=1,timeout=21474836510,minproto=5,maxproto=5,indirect

cokemine commented 1 year ago

我倾向于不去修复它,因为 squashfs 这种文件系统不会有可用空间,添加进合法的文件系统列表在前端也会显示硬盘占用 100%。Python 能显示应该是 BUG,它应该是把内存挂载的也算进去了

ariakeumi commented 1 year ago

会有个 overlay 分区可以正确显示。 屏幕截图 2022-11-24 160744

1DB4D7760C76E85883AE02858F164A36
ariakeumi commented 1 year ago

@cokemine 真的可以显示!可乐老师!

cokemine commented 1 year ago

@ariakeumi 试试这个可不可以 status-client_linux_mipsle.tar.gz

ariakeumi commented 1 year ago

@ariakeumi 试试这个可不可以 status-client_linux_mipsle.tar.gz

ARM64的路由器呢...

cokemine commented 1 year ago

status-client_linux_arm64.tar.gz

ariakeumi commented 1 year ago

status-client_linux_arm64.tar.gz

还是不能识别

cokemine commented 1 year ago

怪,看看这个测试程序有什么输出 status-client_linux_arm64.tar.gz

ariakeumi commented 1 year ago

怪,看看这个测试程序有什么输出 status-client_linux_arm64.tar.gz

/rom squashfs 0 0