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