mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-12-25 11:40:37 +08:00
@@ -36,6 +36,7 @@ services:
|
|||||||
- /dev/kvm
|
- /dev/kvm
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
- LINUX_IMMUTABLE
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -295,7 +295,8 @@ checkFS () {
|
|||||||
|
|
||||||
if [[ "$FA" != *"C"* ]]; then
|
if [[ "$FA" != *"C"* ]]; then
|
||||||
info "Warning: the filesystem of $DIR is ${FS^^}, and COW (copy on write) is not disabled for that folder!"
|
info "Warning: the filesystem of $DIR is ${FS^^}, and COW (copy on write) is not disabled for that folder!"
|
||||||
info "This will negatively affect performance, please empty the folder and disable COW (chattr +C <path>)."
|
info "This will negatively affect performance, please empty the folder and add the LINUX_IMMUTABLE flag"
|
||||||
|
info "to the 'cap_add' section of your compose file, or disable COW manually by executing: chattr +C <path>"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -61,9 +61,10 @@ if [[ "$FS" == "xfs" || "$FS" == "zfs" || "$FS" == "btrfs" || "$FS" == "bcachefs
|
|||||||
{ chattr -R +C "$STORAGE"; } || :
|
{ chattr -R +C "$STORAGE"; } || :
|
||||||
FA=$(lsattr -d "$STORAGE")
|
FA=$(lsattr -d "$STORAGE")
|
||||||
fi
|
fi
|
||||||
if [[ "$FA" != *"C"* ]]; then
|
if [[ "$FA" != *"C"* ]]; then
|
||||||
info "Warning: the filesystem of $STORAGE is ${FS^^}, and COW (copy on write) is not disabled for that folder!"
|
info "Warning: the filesystem of $STORAGE is ${FS^^}, and COW (copy on write) is not disabled for that folder!"
|
||||||
info "This will negatively affect performance, please empty the folder and disable COW (chattr +C <path>)."
|
info "This will negatively affect performance, please empty the folder and add the LINUX_IMMUTABLE flag"
|
||||||
|
info "to the 'cap_add' section of your compose file, or disable COW manually by executing: chattr +C <path>"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -74,8 +75,7 @@ else
|
|||||||
TMP="/tmp/dsm"
|
TMP="/tmp/dsm"
|
||||||
SPACE=$(df --output=avail -B 1 /tmp | tail -n 1)
|
SPACE=$(df --output=avail -B 1 /tmp | tail -n 1)
|
||||||
if (( MIN_SPACE > SPACE )); then
|
if (( MIN_SPACE > SPACE )); then
|
||||||
TMP="$STORAGE/tmp"
|
error "The $FS filesystem of $STORAGE does not support UNIX permissions, and no space left in container.." && exit 93
|
||||||
info "Warning: the $FS filesystem of $STORAGE does not support UNIX permissions.."
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user