Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH xfsprogs] Document current limitation of shrinking fs
@ 2025-08-18 15:19 Xavier Claude
  2025-08-18 20:46 ` Darrick J. Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Xavier Claude @ 2025-08-18 15:19 UTC (permalink / raw)
  To: linux-xfs; +Cc: Xavier Claude

Hello,

If I understand the code correctly[1], shrinking more than one AG is not
supported. So I propose to add it to the manpage, like for the log
shrinking option.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/xfs/xfs_fsops.c?h=v6.17-rc2#n152
-- >8 --

Current implementation in the kernel doesn't allow to shrink more that
one AG

Signed-off-by: Xavier Claude <contact@xavierclaude.be>
---
 man/man8/xfs_growfs.8 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/man/man8/xfs_growfs.8 b/man/man8/xfs_growfs.8
index a0126927..2e329fa6 100644
--- a/man/man8/xfs_growfs.8
+++ b/man/man8/xfs_growfs.8
@@ -70,6 +70,7 @@ otherwise the data section is grown to the largest size possible with the
 option. The size is expressed in filesystem blocks. A filesystem with only
 1 AG cannot be shrunk further, and a filesystem cannot be shrunk to the point
 where it would only have 1 AG.
+.B [NOTE: Only shrinking the last AG without removing it is implemented]
 .TP
 .B \-e
 Allows the real-time extent size to be specified. In
-- 
2.50.1



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

end of thread, other threads:[~2025-08-18 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 15:19 [PATCH xfsprogs] Document current limitation of shrinking fs Xavier Claude
2025-08-18 20:46 ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox