Loading src/disk.sh +8 −13 Original line number Diff line number Diff line Loading @@ -123,10 +123,6 @@ createDisk() { error "$FAIL" && exit 77 fi { chattr +C "$DISK_FILE"; } || : FA=$(lsattr "$DISK_FILE") if [[ "$FA" != *"C"* ]]; then error "Failed to disable COW for $DISK_DESC image $DISK_FILE on ${FS^^} filesystem (returned $FA)" fi fi if [[ "$ALLOCATE" == [Nn]* ]]; then Loading Loading @@ -159,6 +155,8 @@ createDisk() { rm -f "$DISK_FILE" error "$FAIL" && exit 70 fi ;; esac if isCow "$FS"; then FA=$(lsattr "$DISK_FILE") Loading @@ -167,9 +165,6 @@ createDisk() { fi fi ;; esac return 0 } Loading Loading @@ -328,7 +323,7 @@ checkFS () { if [ -f "$DISK_FILE" ]; then FA=$(lsattr "$DISK_FILE") if [[ "$FA" != *"C"* ]]; then info "Warning: COW (copy on write) is not disabled for the $DISK_DESC image file $DISK_FILE, this is recommended on ${FS^^} filesystems!" info "Warning: COW (copy on write) is not disabled for $DISK_DESC image file $DISK_FILE, this is recommended on ${FS^^} filesystems!" fi fi fi Loading Loading
src/disk.sh +8 −13 Original line number Diff line number Diff line Loading @@ -123,10 +123,6 @@ createDisk() { error "$FAIL" && exit 77 fi { chattr +C "$DISK_FILE"; } || : FA=$(lsattr "$DISK_FILE") if [[ "$FA" != *"C"* ]]; then error "Failed to disable COW for $DISK_DESC image $DISK_FILE on ${FS^^} filesystem (returned $FA)" fi fi if [[ "$ALLOCATE" == [Nn]* ]]; then Loading Loading @@ -159,6 +155,8 @@ createDisk() { rm -f "$DISK_FILE" error "$FAIL" && exit 70 fi ;; esac if isCow "$FS"; then FA=$(lsattr "$DISK_FILE") Loading @@ -167,9 +165,6 @@ createDisk() { fi fi ;; esac return 0 } Loading Loading @@ -328,7 +323,7 @@ checkFS () { if [ -f "$DISK_FILE" ]; then FA=$(lsattr "$DISK_FILE") if [[ "$FA" != *"C"* ]]; then info "Warning: COW (copy on write) is not disabled for the $DISK_DESC image file $DISK_FILE, this is recommended on ${FS^^} filesystems!" info "Warning: COW (copy on write) is not disabled for $DISK_DESC image file $DISK_FILE, this is recommended on ${FS^^} filesystems!" fi fi fi Loading