btrfs subvolume mount with different options
Hi list,
just wondering whether it is possible to mount two subvolumes with different mount options, i.e.
| |- /a defaults,compress-force=lza | |- /b defaults,nodatacow
since, when both subvolumes are mounted, and when I change the option for one it is changed for all of them.
thanks in advance.
2018-01-12 20:49 GMT+03:00 Konstantin V. Gavrilenko <[email protected]>:
Quoted 13 lines
Hi list,
just wondering whether it is possible to mount two subvolumes with different mount options, i.e.
| |- /a defaults,compress-force=lza | |- /b defaults,nodatacowsince, when both subvolumes are mounted, and when I change the option for one it is changed for all of them.
Quoted 6 lines
thanks in advance.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Not possible for now.
Signature · 2 lines
Have a nice day, Timofey.
Quoted 6 lines · On Fri, 12 Jan 2018 17:49:38 +0000 (GMT) "Konstantin V. Gavrilenko"…
Hi list,
just wondering whether it is possible to mount two subvolumes with different mount options, i.e.
|
|- /a defaults,compress-force=lza
You can have use different compression algorithms across the filesystem (including none), via "btrfs properties" on directories or subvolumes. They are inherited down the tree.
$ mkdir test $ sudo btrfs prop set test compression zstd $ echo abc > test/def $ sudo btrfs prop get test/def compression compression=zstd
But it appears this doesn't provide a way to apply compress-force.
Quoted 1 line
|- /b defaults,nodatacow
Nodatacow can be applied to any dir/subvolume recursively, or any file (as long as it's created but not written yet) via chattr +C.
Signature · 2 lines
With respect, Roman
Thanks, chattr +C is that's what I am currently using.
Also you already answered my next question, why it is not possible to set +C attribute on the existing file :)
Yours sincerely,
Konstantin V. Gavrilenko
----- Original Message -----
From: "Roman Mamedov" <[email protected]>
To: "Konstantin V. Gavrilenko" <[email protected]>
Cc: "Linux fs Btrfs" <[email protected]>
Sent: Friday, 12 January, 2018 9:37:49 PM
Subject: Re: btrfs subvolume mount with different options
Quoted 6 lines · On Fri, 12 Jan 2018 17:49:38 +0000 (GMT) "Konstantin V. Gavrilenko"…
Hi list,
just wondering whether it is possible to mount two subvolumes with different mount options, i.e.
|
|- /a defaults,compress-force=lza
You can have use different compression algorithms across the filesystem (including none), via "btrfs properties" on directories or subvolumes. They are inherited down the tree.
$ mkdir test $ sudo btrfs prop set test compression zstd $ echo abc > test/def $ sudo btrfs prop get test/def compression compression=zstd
But it appears this doesn't provide a way to apply compress-force.
Quoted 1 line
|- /b defaults,nodatacow
Nodatacow can be applied to any dir/subvolume recursively, or any file (as long as it's created but not written yet) via chattr +C.
Signature · 6 lines
With respect, Roman -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html