From 42c7d763d85e20e3f0ba9fff4f0c8f5f415c37da Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 10 Feb 2021 13:14:12 +0100 Subject: [PATCH] document what filesystem types are supported by 'resizefs' option (#1753) (#1774) * document what filesystem types are supported by 'resizefs' option * add changelog fragment * remove info about lvol documentation changes in changelog fragment (cherry picked from commit d1e54d2fd17cc4be9dae0027b9e1de69e8baee19) Co-authored-by: quidame --- .../fragments/1753-document-fstypes-supported-by-resizefs.yml | 3 +++ plugins/modules/system/filesystem.py | 3 ++- plugins/modules/system/lvol.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/1753-document-fstypes-supported-by-resizefs.yml diff --git a/changelogs/fragments/1753-document-fstypes-supported-by-resizefs.yml b/changelogs/fragments/1753-document-fstypes-supported-by-resizefs.yml new file mode 100644 index 0000000000..9b1329412c --- /dev/null +++ b/changelogs/fragments/1753-document-fstypes-supported-by-resizefs.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - filesystem - remove ``swap`` from list of FS supported by ``resizefs=yes`` (https://github.com/ansible-collections/community.general/issues/790). diff --git a/plugins/modules/system/filesystem.py b/plugins/modules/system/filesystem.py index e78eec4e86..48c68a35ad 100644 --- a/plugins/modules/system/filesystem.py +++ b/plugins/modules/system/filesystem.py @@ -57,7 +57,8 @@ options: resizefs: description: - If C(yes), if the block device and filesystem size differ, grow the filesystem into the space. - - Supported for C(ext2), C(ext3), C(ext4), C(ext4dev), C(f2fs), C(lvm), C(xfs), C(vfat), C(swap) filesystems. + - Supported for C(ext2), C(ext3), C(ext4), C(ext4dev), C(f2fs), C(lvm), C(xfs) and C(vfat) filesystems. + Attempts to resize other filesystem types will fail. - XFS Will only grow if mounted. Currently, the module is based on commands from C(util-linux) package to perform operations, so resizing of XFS is not supported on FreeBSD systems. diff --git a/plugins/modules/system/lvol.py b/plugins/modules/system/lvol.py index fa50007ebf..852d0f5cd7 100644 --- a/plugins/modules/system/lvol.py +++ b/plugins/modules/system/lvol.py @@ -76,6 +76,8 @@ options: resizefs: description: - Resize the underlying filesystem together with the logical volume. + - Supported for C(ext2), C(ext3), C(ext4), C(reiserfs) and C(XFS) filesystems. + Attempts to resize other filesystem types will fail. type: bool default: 'no' notes: