mirror of
https://github.com/9001/copyparty.git
synced 2026-11-27 00:31:30 +00:00
check xlink on copy
This commit is contained in:
1 parent
735d6e00de
commit
947d73eeb6
1 file changed
+6
@@ -4667,6 +4667,12 @@ class Up2k(object):
|
|||||||
self.log("not found in src db: %r" % (svp,))
|
self.log("not found in src db: %r" % (svp,))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if svn_dbv != dvn and not (
|
||||||
|
"xlink" in dvn.flags
|
||||||
|
or "reflink" in dvn.flags
|
||||||
|
or "hardlinkonly" in dvn.flags
|
||||||
|
):
|
||||||
|
raise OSError(errno.EXDEV, "different volumes")
|
||||||
if is_link and st != stl:
|
if is_link and st != stl:
|
||||||
# relink non-broken symlinks to still work after the move,
|
# relink non-broken symlinks to still work after the move,
|
||||||
# but only resolve 1st level to maintain relativity
|
# but only resolve 1st level to maintain relativity
|
||||||
|
|||||||
Reference in new issue
Block a user