* 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
* Re: how to make a cache directory nodatacow while also excluded from snapshots?
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
0 siblings, 0 replies; 2+ messages in thread
From: Andrei Borzenkov @ 2018-01-16 3:48 UTC (permalink / raw)
To: Dave, Linux fs Btrfs
16.01.2018 00:56, Dave пишет:
> 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.
Try creating file under ~/.cache and check its attributes.
^ 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 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.