Skip to content

Commit

Permalink
feat: Enable GFS2 support in blivet
Browse files Browse the repository at this point in the history
GFS2 is supported by blivet, but the support is disabled by
default so we need to enable it.

Fixes: #417
  • Loading branch information
vojtechtrefny committed Jan 26, 2024
1 parent 98cd81f commit 7fb6ab5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def __getattr__(self, val):
if BLIVET_PACKAGE:
blivet_flags.debug = True
blivet_flags.allow_online_fs_resize = True
blivet_flags.gfs2 = True
set_up_logging()
log = logging.getLogger(BLIVET_PACKAGE + ".ansible")

Expand Down
7 changes: 6 additions & 1 deletion tests/test-verify-volume-fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@
should
('{{ storage_test_blkinfo.info[storage_test_volume._device].label }}',
'{{ storage_test_volume.fs_label }}')
when: _storage_test_volume_present | bool
when:
- _storage_test_volume_present | bool
# label for GFS2 is set manually with the extra `-t` fs_create_options
# so we can't verify it here because it was not set with fs_label so
# the label from blkinfo doesn't match the expected "empty" fs_label
- storage_test_volume.fs_type != "gfs2"
4 changes: 4 additions & 0 deletions tests/tests_lvm_pool_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
- name: lv1
size: "{{ volume1_size }}"
mount_point: "{{ mount_location1 }}"
fs_type: gfs2
fs_create_options: -p lock_nolock
- name: Verify role results
include_tasks: verify-role-results.yml
Expand All @@ -144,6 +146,8 @@
- name: lv1
size: "{{ volume1_size }}"
mount_point: "{{ mount_location1 }}"
fs_type: gfs2
fs_create_options: -p lock_nolock

- name: Verify role results
include_tasks: verify-role-results.yml
Expand Down

0 comments on commit 7fb6ab5

Please sign in to comment.