From c28dbb6b9b2f2a1f0e94454cffc1c0e44536cfde Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 5 Jan 2024 13:24:54 +0100 Subject: [PATCH] feat: Add FUSE warning (#542) * feat: Add FUSE warning --- src/disk.sh | 4 ++++ src/install.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/disk.sh b/src/disk.sh index 915b336..c4ce8f0 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -319,6 +319,10 @@ checkFS () { info "Warning: the filesystem of $DIR is OverlayFS, this usually means it was binded to an invalid path!" fi + if [[ "${FS,,}" == "fuse"* ]]; then + info "Warning: the filesystem of $DIR is FUSE, this extra layer will negatively affect performance!" + fi + if isCow "$FS"; then if [ -f "$DISK_FILE" ]; then FA=$(lsattr "$DISK_FILE") diff --git a/src/install.sh b/src/install.sh index 04efca1..24cd75e 100644 --- a/src/install.sh +++ b/src/install.sh @@ -53,6 +53,10 @@ if [[ "${FS,,}" == "overlay"* ]]; then info "Warning: the filesystem of $STORAGE is OverlayFS, this usually means it was binded to an invalid path!" fi +if [[ "${FS,,}" == "fuse"* ]]; then + info "Warning: the filesystem of $STORAGE is FUSE, this extra layer will negatively affect performance!" +fi + if [[ "${FS,,}" != "fat"* && "${FS,,}" != "vfat"* && "${FS,,}" != "exfat"* && "${FS,,}" != "ntfs"* && "${FS,,}" != "msdos"* ]]; then TMP="$STORAGE/tmp" else