[PATCH v5 3/4] server: Handle hardlinks and casefolding when renaming the same file.