Skip to content

Commit a5f1fd5

Browse files
Bug fix for new move feature
1 parent 48f17d8 commit a5f1fd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zfslib/zfslib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,9 @@ def __init__(self, row, snap_left, snap_right, get_move:bool=False):
833833
raise Exception(f"Unexpected len: {len(row)}. Row = {row}")
834834

835835
# Derrive Move change type
836-
if get_move and chg_type == 'R' and path_new is not None:
837-
chg_type = 'V'
836+
if get_move and file_type == 'F' and chg_type == 'R':
837+
if splitPath(path)[1] != splitPath(path_new)[1]:
838+
chg_type = 'V'
838839

839840
# Fix issue related to https://github.com/openzfs/zfs/issues/6318
840841
path = path.replace("\\0040", " ")

0 commit comments

Comments
 (0)