linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to make a cache directory nodatacow while also excluded from snapshots?
@ 2018-01-15 21:56 Dave
  2018-01-16  3:48 ` Andrei Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Dave @ 2018-01-15 21:56 UTC (permalink / raw)
  To: Linux fs Btrfs

I want to exclude my ~/.cache directory from snapshots. The obvious
way to do this is to mount a btrfs subvolume at that location.

However, I also want the ~/.cache directory to be nodatacow. Since the
parent volume is COW, I believe it isn't possible to mount the
subvolume with different mount options.

What's the solution for achieving both of these goals?

I tried this without success:

    chattr +C ~/.cache

Since ~/.cache is a btrfs subvolume, apparently that doesn't work.

    lsattr ~/.cache

returns nothing.

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

end of thread, other threads:[~2018-01-16  3:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 21:56 how to make a cache directory nodatacow while also excluded from snapshots? Dave
2018-01-16  3:48 ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).