[lvm-devel] [PATCH 0/1] adding Btrfs resizing capability to lvresize/fsadm.sh
Marcus Müller
marcus at hostalia.de
Thu Aug 3 08:44:17 UTC 2017
So,
I'll admit that me spontaneously handing in above feature patch
yesterday was an act of "let's get this out of my head before I go
home". For private purposes, I wanted lvresize -r to deal with BTRFS, too.
Am I right here to post feature branches at all? Any copyright
assignments I need to take care of?
Regarding the patch:
BTRFS is a bit special in that one filesystem can spread across multiple
physical volumes. In the case of multi-volume BTRFS, we need to specify
which specific one needs resizing; hence the whole devid dance.
Also: BTRFS needs to be mounted to be resized; mount detection sometimes
fails. That is not an issue, since it's safe to multi-mount a filesystem
and resize it. So in fact, I was considering skipping the checking for
mountedness completely, but then decided against it to keep the resize_*
functions as uniform and recognizable as possible.
Best regards,
Marcus Müller
On 08/02/2017 07:42 PM, Marcus Müller wrote:
> Btrfs support was missing from LVM's volume resize tools.
> Fixed that.
>
> Marcus Müller (1):
> added resizing for btrfs
>
> scripts/fsadm.sh | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 68 insertions(+), 1 deletion(-)
>
More information about the lvm-devel
mailing list