1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-16 04:47:30 +00:00

[PR #12218/9c0051e3 backport][stable-13] filesystem module gfs2 support (#12239)

filesystem module gfs2 support (#12218)

* adds GFS2 to filesystem module

* adds changelog fragment

* adds PR URL

* adds blank line

* removes RedHat, package not available

* renames file and removes license remark

* adds remark about adding gfs2 to 13.1.0

* corrects typo

* Update changelogs/fragments/12218-filesystem-gfs2.yaml



---------


(cherry picked from commit 9c0051e325)

Co-authored-by: Robert Sander <github@gurubert.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2026-06-13 16:43:29 +02:00 committed by GitHub
parent 1b3debec53
commit 58d8bbf164
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 1 deletions

View file

@ -35,11 +35,12 @@ options:
default: present
version_added: 1.3.0
fstype:
choices: [bcachefs, btrfs, ext2, ext3, ext4, ext4dev, f2fs, lvm, ocfs2, reiserfs, xfs, vfat, swap, ufs]
choices: [bcachefs, btrfs, ext2, ext3, ext4, ext4dev, f2fs, lvm, ocfs2, reiserfs, xfs, vfat, swap, ufs, gfs2]
description:
- Filesystem type to be created. This option is required with O(state=present) (or if O(state) is omitted).
- V(ufs) support has been added in community.general 3.4.0.
- V(bcachefs) support has been added in community.general 8.6.0.
- V(gfs2) support has been added in community.general 13.1.0.
type: str
aliases: [type]
dev:
@ -611,6 +612,12 @@ class UFS(Filesystem):
return fragmentsize * providersize
class GFS2(Filesystem):
MKFS = "mkfs.gfs2"
MKFS_FORCE_FLAGS = ["-O"]
MKFS_SET_UUID_OPTIONS = ["-U"]
FILESYSTEMS = {
"bcachefs": Bcachefs,
"ext2": Ext2,
@ -626,6 +633,7 @@ FILESYSTEMS = {
"LVM2_member": LVM,
"swap": Swap,
"ufs": UFS,
"gfs2": GFS2,
}