subvolume for swapfile

This commit is contained in:
Maciej Lebiest 2022-02-18 20:33:36 +01:00 committed by GitHub
parent 83c1403e91
commit 5920fb3b2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,10 +267,10 @@ LC_TIME=pl_PL.UTF-8
#### Now create empty (with 0 size) swap file: #### Now create empty (with 0 size) swap file:
#### Create separate folder for swapfile. This folder is needed to let you make snapshot of `/`, which would not be possible with any file in it with CoW disabled! #### Create separate subvolume for swapfile. This subvolume is needed to let you make snapshot of `/`, which would not be possible with any file in it with CoW disabled!
``` ```
mkdir /swap btrfs su create /swap
chattr +C /swap chattr +C /swap
``` ```