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
Josh 2020-07-19 03:04:46 -05:00 committed by GitHub
parent b8cb8d34b1
commit faaf3ca047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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})