1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-15 04:17:41 +00:00

Revert "filesystem module gfs2 support (#12218)" (#12262)

This reverts commit 9c0051e325.
This commit is contained in:
Felix Fontein 2026-06-14 00:33:28 +02:00 committed by GitHub
parent ed8afeb16b
commit f1317d3039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 19 deletions

View file

@ -1,2 +0,0 @@
minor_changes:
- filesystem - adds GFS2 support (https://github.com/ansible-collections/community.general/pull/12218).

View file

@ -35,12 +35,11 @@ options:
default: present
version_added: 1.3.0
fstype:
choices: [bcachefs, btrfs, ext2, ext3, ext4, ext4dev, f2fs, lvm, ocfs2, reiserfs, xfs, vfat, swap, ufs, gfs2]
choices: [bcachefs, btrfs, ext2, ext3, ext4, ext4dev, f2fs, lvm, ocfs2, reiserfs, xfs, vfat, swap, ufs]
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:
@ -612,12 +611,6 @@ 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,
@ -633,7 +626,6 @@ FILESYSTEMS = {
"LVM2_member": LVM,
"swap": Swap,
"ufs": UFS,
"gfs2": GFS2,
}

View file

@ -29,8 +29,6 @@ tested_filesystems:
lvm: {fssize: 20, grow: true, new_uuid: 'something'}
swap: {fssize: 10, grow: false, new_uuid: null} # grow not implemented
ufs: {fssize: 10, grow: true, new_uuid: null}
# TODO: tests seem to be generally broken
# gfs2: {fssize: 10, grow: false, new_uuid: null}
get_uuid_any: "blkid -c /dev/null -o value -s UUID {{ dev }}"

View file

@ -99,12 +99,6 @@
state: present
when: ansible_facts.os_family == 'Debian'
- name: "Install GFS2"
ansible.builtin.package:
name: gfs2-utils
state: present
when: ansible_facts.os_family in ['Debian', 'Suse', 'Ubuntu'] or ansible_facts.distribution in ['Fedora']
- name: "Install f2fs tools and get version"
when:
- ansible_facts.os_family != 'RedHat' or ansible_facts.distribution == 'Fedora'