[elbe-devel] [PATCH v3 0/3] Add support for nested btrfs subvolume hierarchies

Bastian Germann bage at linutronix.de
Fri Dec 30 11:57:04 CET 2022


Am 30.12.22 um 10:59 schrieb Daniel Braunwarth:
> Hi Bastian
> 
> On Thu, 2022-12-01 at 16:51 +0100, Bastian Germann wrote:
>> Thanks for posting this series. I would like to cater to your need,
>> however, introducing such shenanigans for each
>> filesystem is a bit out of scope. There is already tune2fs which
>> modifies an ext filesystem.
>>
>> If you want volume support for btrfs please abstract it in a way that
>> one can run filesystem modifications via
>> specifying a command template like commands in finetuning. Please
>> convert the tune2fs code to use this abstraction
>> instead by introducing an XML preprocess rule for it.
> 
> Sure, no problem.
> 
> So you mean something like this:

Yes.

> <bylabel>
>      <label>rfs</label>
>      <mountpoint>/</mountpoint>
>          <fs>
>              <type>ext4</type>
>              <fs-finetuning>
>                  <command>tune2fs -i 0 {device}/command>
>              </fs-finetuning>
>          </fs>
> </bylabel>
> 
> <bylabel>
>      <label>rfs</label>
>      <mountpoint>/</mountpoint>
>          <fs>
>              <type>btrfs</type>
>              <fs-finetuning>
>                  <command>btrfs subvolume create {path}/home</command>
>              </fs-finetuning>
>          </fs>
> </bylabel>
> 
> {device} and {path} would be placeholders for either the loop device or
> the mounted path.
> 
> 
> 
> Regards
> 
> Daniel


More information about the elbe-devel mailing list