xfs
[Top] [All Lists]

beginners project: RENAME_EXCHANGE

To: xfs@xxxxxxxxxxx
Subject: beginners project: RENAME_EXCHANGE
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 22 Sep 2014 10:35:45 -0700
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mutt/1.5.23 (2014-03-12)
As people are looking for beginners projects one in a while there's
an easy one at the moment:  implement support for the RENAME_EXCHANGE
flag to the renameat2 system call, which swaps the names for two
existing files.  Documentation here:

http://man7.org/linux/man-pages/man2/rename.2.html

This should mostly be doable by refactoring (or more likely copy &
pasting) the existing rename implementation.  xfstests already has test
case for it, although making sure they covering everything would be a
nice extrea.

(if no one replies to the list I will add it to the wiki after a while)

<Prev in Thread] Current Thread [Next in Thread>