public void updateParentDir(File dir) {
        for (LogSegment s : values())
            s.updateParentDir(dir);
    }
Update the directory reference for the log and indices of all segments.

@param dir the renamed directory
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java