Skip to content

Commit

Permalink
feat: Add FUSE warning (#542)
Browse files Browse the repository at this point in the history
* feat: Add FUSE warning
  • Loading branch information
kroese committed Jan 5, 2024
1 parent dcc26b6 commit c28dbb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 4 additions & 0 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c28dbb6

Please sign in to comment.