Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #8126/486c26b2 backport][stable-8] filesystem: add bcachefs support #8251

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Apr 20, 2024

This is a backport of PR #8126 as merged into main (486c26b).

SUMMARY

Add support for bcachefs to the filesystem module.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

filesystem

ADDITIONAL INFORMATION

Test playbook:

---
- hosts: localhost
  vars:
    img_file: /tmp/bcachefs.img
  tasks:
    - name: create 1GiB file
      community.general.filesize:
        path: "{{ img_file }}"
        size: 1GiB

    - name: create bcachefs filesystem on file
      ansible.legacy.filesystem:
        dev: "{{ img_file }}"
        fstype: bcachefs
        uuid: bfe441c5-93da-440b-8c9a-e807bc538abb

    - name: create bcachefs filesystem on file (no changes)
      ansible.legacy.filesystem:
        dev: "{{ img_file }}"
        force: False
        fstype: bcachefs

    - name: create bcachefs filesystem on file (force)
      ansible.legacy.filesystem:
        dev: "{{ img_file }}"
        force: True
        fstype: bcachefs

    - name: resize 1GiB file to 2GiB
      community.general.filesize:
        path: "{{ img_file }}"
        size: 2GiB

    - name: resize bcachefs filesystem on file
      ansible.legacy.filesystem:
        dev: "{{ img_file }}"
        fstype: bcachefs
        resizefs: True

Output:

PLAY [localhost] *****************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************
ok: [localhost]

TASK [create 1GiB file] **********************************************************************************************************************************
--- before
+++ after
@@ -1 +1 @@
-size: null
+size: 1073741824

changed: [localhost]

TASK [create bcachefs filesystem on file] ****************************************************************************************************************
changed: [localhost]

TASK [create bcachefs filesystem on file (no changes)] ***************************************************************************************************
ok: [localhost]

TASK [create bcachefs filesystem on file (force)] ********************************************************************************************************
changed: [localhost]

TASK [resize 1GiB file to 2GiB] **************************************************************************************************************************
--- before
+++ after
@@ -1 +1 @@
-size: 1073741824
+size: 2147483648

changed: [localhost]

TASK [resize bcachefs filesystem on file] ****************************************************************************************************************
changed: [localhost]

PLAY RECAP ***********************************************************************************************************************************************
localhost                  : ok=7    changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

Signed-off-by: Stijn Tintel <[email protected]>
(cherry picked from commit 486c26b)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Apr 20, 2024
@felixfontein felixfontein merged commit d19b4f9 into stable-8 Apr 20, 2024
131 of 132 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-8/486c26b2247c37428c41a094ab7db593f3355734/pr-8126 branch April 20, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants