Skip to content

Commit

Permalink
skip renaming of files with the same name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Mar 3, 2025
1 parent 8c55fb0 commit 2a2caee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/meta/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,10 @@ func (m *fsMachine) Rename(t *rapid.T) {
if srcIno == dstParent {
t.Skipf("skip rename srcIno is dstParent")
}
// hard link
if n, ok := m.nodes[dstParent].children[dstName]; ok && n.inode == srcIno {
t.Skipf("skip rename srcIno is dstParent")
}
tmp := m.nodes[dstParent].inode
for {
if tmp == RootInode {
Expand Down

0 comments on commit 2a2caee

Please sign in to comment.