hyperledger-labs / perun-node

State channel node of the blockchain-agnostic state channels framework Perun.
https://labs.hyperledger.org/perun-doc/
Apache License 2.0
18 stars 12 forks source link

Avoiding invalid cross-device link at generate #239

Closed danielksan81 closed 2 years ago

danielksan81 commented 2 years ago

Description

Moving files between devices on file system leads to invalid cross-device link by using os.Rename. Therefore another way to move files is used, which avoids this error. Additional library is added, which implements this feature.

Category

Bug Fix

Relevant issue

resolves #238

Testing

Tested on machine with two different hard drives, one for / inlcuding /tmp, where the tmp files are generated. Other harddrive contains perun node.

Steps to run the tests
  1. Mount an additional harddrive, which is different from /tmp
  2. Checkout perun-node to new harddrive and execute make
  3. Run ./perunnode generate

Checklist