> Patch 1 implements the VFS support for this flag. The implementation > resembles sys_renameat2(), and I took care to preserve all of the > original error cases and make the new error cases consistent with > rename. Shouldn't we try to reuse the rename code and the ->rename method instead of largely duplicating it? In fact I wonder if a better interface would just use renameat(2) and accept the AT_EMPTY_PATH (for the source name only).