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 23, 2024
1 parent 98cd81f commit bc8a1f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

Check warning on line 415 in library/blivet.py

View check run for this annotation

Codecov / codecov/patch

library/blivet.py#L415

Added line #L415 was not covered by tests
set_up_logging()
log = logging.getLogger(BLIVET_PACKAGE + ".ansible")

Expand Down
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 bc8a1f9

Please sign in to comment.