1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-08 11:39:02 +00:00

adds GFS2 to filesystem module

This commit is contained in:
Robert Sander 2026-06-09 23:58:38 +02:00
parent 3774ca20d2
commit 5036a2d46f
3 changed files with 14 additions and 1 deletions

View file

@ -35,7 +35,7 @@ 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.
@ -611,6 +611,11 @@ 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 +631,7 @@ FILESYSTEMS = {
"LVM2_member": LVM,
"swap": Swap,
"ufs": UFS,
"gfs2": GFS2,
}