Compare-and-Swap over POSIX-compliant filesystem objects
There are several operations which POSIX-compliant operating systems can do atomically with filesystem objects (files and folders). Here is a list of such presumably atomic operations : rename or move file or folder create hardlink create symlink create folder create and open an empty file Is it possible to build Compare-and-Swap algorithm for manipulating a file based on these operations? Let’s suppose we have several processes which are performing concurrent read/write on a single file. A file is characterized by its revision. Let’s say the revision is added to file name, and there is a