Commit 815ee9aa authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fs: print a log message if MvChild in the tree fails

parent 19ede699
...@@ -443,7 +443,9 @@ func (b *rawBridge) Rename(cancel <-chan struct{}, input *fuse.RenameIn, oldName ...@@ -443,7 +443,9 @@ func (b *rawBridge) Rename(cancel <-chan struct{}, input *fuse.RenameIn, oldName
if input.Flags&RENAME_EXCHANGE != 0 { if input.Flags&RENAME_EXCHANGE != 0 {
p1.ExchangeChild(oldName, p2, newName) p1.ExchangeChild(oldName, p2, newName)
} else { } else {
p1.MvChild(oldName, p2, newName, true) if ok := p1.MvChild(oldName, p2, newName, true); !ok {
log.Println("MvChild failed")
}
} }
return errnoToStatus(errno) return errnoToStatus(errno)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment