From: "Frank A. Kingswood" <frank@kingswood-consulting.co.uk>
To: linux-kernel@vger.kernel.org
Subject: atomically swap two files
Date: Thu, 25 Nov 2010 20:11:46 +0000 [thread overview]
Message-ID: <icmfu2$nga$1@dough.gmane.org> (raw)
Hi!
Is it possible to swap two files in an atomic way, so that after the
syscall either the two files have exchanged names or neither has been
modified?
I suspect that btrfs could do it, but I'm wondering about ext3/4.
Frank
next reply other threads:[~2010-11-25 20:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-25 20:11 Frank A. Kingswood [this message]
2010-11-26 11:47 ` atomically swap two files Pádraig Brady
2010-11-26 14:19 ` Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='icmfu2$nga$1@dough.gmane.org' \
--to=frank@kingswood-consulting.co.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.