summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/drivers/modules/irmc/test_management.py
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2023-03-31 15:39:50 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2023-04-11 17:23:25 +0000
commitec6c37579675c8f0b82475fc97caa8e3c338cad4 (patch)
tree5f6f77f7963ab8c9c50c47b8c77dccf7e1c1a148 /ironic/tests/unit/drivers/modules/irmc/test_management.py
parentd6b9709952abd188f0a1d7ddec11f2c82c302a4c (diff)
downloadironic-ec6c37579675c8f0b82475fc97caa8e3c338cad4.tar.gz
Always fall back from hard linking to copying files
The current check is insufficient: it passes for Kubernetes shared volumes, although hard-linking between them is not possible. This patch changes the approach to trying a hard link and falling back to copyfile instead. The patch relies on optimizations in Python 3.8 and thus should not be backported beyond the Zed series to avoid performance regression. Change-Id: I929944685b3ac61b2f63d2549198a2d8a1c8fe35 (cherry picked from commit 59c6ad96ce35c9deecfedb5698c5806f3883a8af)
Diffstat (limited to 'ironic/tests/unit/drivers/modules/irmc/test_management.py')
0 files changed, 0 insertions, 0 deletions