public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* status of swapfiles on Btrfs
@ 2017-06-08 21:35 Chris Murphy
  2017-06-09  0:06 ` Omar Sandoval
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Murphy @ 2017-06-08 21:35 UTC (permalink / raw)
  To: Btrfs BTRFS, Omar Sandoval, David Sterba

What's the status?

This message gave me an idea:
http://www.spinics.net/lists/linux-btrfs/msg40323.html

What about an xattr on both subvolume and the swapfile that would
inhibit btrfs user space tools from either snapshotting the subvolume
or the swapfile?

There could be a feature in btrfs user space tool to "create a
swapfile" which would do the full sequence:
1. create a subvolume at the top level
2. set a "do not snapshot" xattr on subvolume
3. fallocate a swapfile, presumably contiguous since swap can't use a
file with holes or gaps
4. set a "do not snapshot/reflink" xattr on the swapfile

Does this solve any usability concerns?



-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-09  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 21:35 status of swapfiles on Btrfs Chris Murphy
2017-06-09  0:06 ` Omar Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox