Sfoglia il codice sorgente

Merge pull request #19 from Sailing74/fixoutofram

unmount tmpfs if RAM too small to prevent corruption of logdir
pull/22/head
azlux 7 anni fa
committed by GitHub
parent
commit
150136da42
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      log2ram

+ 2
- 0
log2ram Vedi File

@@ -27,6 +27,8 @@ syncFromDisk () {

if [ ! -z `du -sh -t $SIZE $HDD_LOG | cut -f1` ]; then
echo "ERROR: RAM disk too small. Can't sync."
umount -l $RAM_LOG
umount -l $HDD_LOG
exit 1
fi



Caricamento…
Annulla
Salva