mirror of https://github.com/aristocratos/bashtop
ignore 9p filesystems to fix hang on Crostini
This patch prevents bashtop from hanging when running in a Crostini container. Crostini (Linux containers on ChromeOS) use the 9P filesystem for communication between various VMs and containers.pull/171/head
parent
b8cb8d34b1
commit
faaf3ca047
2
bashtop
2
bashtop
|
@ -2235,7 +2235,7 @@ collect_mem() { #? Collect memory information from "/proc/meminfo"
|
|||
if ! py_command -a df_array "get_disks(exclude='squashfs'${filtering})"; then psutil_disk_fail=1; psutil_on="false"; fi
|
||||
fi
|
||||
if [[ $psutil_on == false ]]; then
|
||||
readarray -t df_array < <(${df} -x squashfs -x tmpfs -x devtmpfs -x overlay 2>/dev/null || true)
|
||||
readarray -t df_array < <(${df} -x squashfs -x tmpfs -x devtmpfs -x overlay -x 9p 2>/dev/null || true)
|
||||
fi
|
||||
for df_line in "${df_array[@]:1}"; do
|
||||
line_array=(${df_line})
|
||||
|
|
Loading…
Reference in New Issue