All of lore.kernel.org
 help / color / mirror / Atom feed
* Request for comments about support btrfs in lvresize
@ 2025-03-10  8:35 Glass Su
  2025-03-10 16:24 ` David Teigland
  0 siblings, 1 reply; 5+ messages in thread
From: Glass Su @ 2025-03-10  8:35 UTC (permalink / raw)
  To: lvm-devel; +Cc: teigland, zkabelac, Heming Zhao

Hi
 I am drafting patches for btrfs support in lvresize command. All things went smoothly until I realized
multi-devices btrfs handling is a little complicated.

For one device btrfs, fslastblock * fsblocksize/FSSIZE is the correct value like ext* and xfs
But for multi-devices btrfs, the two values are whole fs size. The used size of device can be
known by btrfs-progs or superblock read and parse.

Heming suggested that maybe in fs_get_info(), execute of a external script named 
lvresize_btrfs_helper.sh which calls btrfs-progs to gather information is a feasible way.
We both admit it’s not a grace way so here seek advices from you. Thanks.

— 
Su


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-11 15:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10  8:35 Request for comments about support btrfs in lvresize Glass Su
2025-03-10 16:24 ` David Teigland
2025-03-11  1:47   ` Glass Su
2025-03-11  2:03     ` Heming Zhao
2025-03-11 15:30     ` David Teigland

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.