rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 23 forks source link

prevent replacing *-orig files that cause recursive calls #36

Closed dlux95 closed 7 years ago

dlux95 commented 7 years ago

Because the installation of packages did not pass because of low memory in /var/log i ran the install script twice. Shortly afterwards XenServer OOM features seemed to kill xapi and other necessary processes. It took me a while to realise that install.sh copied tap-ctl to tap-ctl-orig the first try i ran it. The second time it copied tap-ctl to tap-ctl-orig again, deleting the binary file (original). The tap-ctl-orig now calls itself endlessly which causes a forkbomb to appear in dom0 PR addresses this issue by checking the existence of tap-ctl-orig and vhd-tool-orig and only backing them up if they are non-existent.