Skip to content

Commit faaf3ca

Browse files
authored
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.
1 parent b8cb8d3 commit faaf3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bashtop

+1-1
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ collect_mem() { #? Collect memory information from "/proc/meminfo"
22352235
if ! py_command -a df_array "get_disks(exclude='squashfs'${filtering})"; then psutil_disk_fail=1; psutil_on="false"; fi
22362236
fi
22372237
if [[ $psutil_on == false ]]; then
2238-
readarray -t df_array < <(${df} -x squashfs -x tmpfs -x devtmpfs -x overlay 2>/dev/null || true)
2238+
readarray -t df_array < <(${df} -x squashfs -x tmpfs -x devtmpfs -x overlay -x 9p 2>/dev/null || true)
22392239
fi
22402240
for df_line in "${df_array[@]:1}"; do
22412241
line_array=(${df_line})

0 commit comments

Comments
 (0)