mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Filesystem: refactor, improvements, add tests (#25519)
* filesystem: list used tools * filesystem: btrfs and reiserfs don't support resizing * filesystem: list supported filesystems use formatting functions and 'filesystem' instead of 'file system' * filesystem: PEP8 * filesystem: remove useless calls to module.boolean * filesystem: fail when the requested action isn't implemented * filesystem: resizefs: list supported FS rather than unsupported * filesystem: refactor * filesystem: add integration tests * filesystem: allow to use image file with 'dev' param * filesystem: test resizefs (ext2/3/4 filesystems only) * filesystem: Btrfs, handle older version than v0.20-rc1 * filesystem: use loop keyword (integration tests) * filesystem: new test, check when another filesystem already exists * filesystem: add myself as a maintainer * filesystem: fix tests as filters
This commit is contained in:
14
test/integration/targets/filesystem/defaults/main.yml
Normal file
14
test/integration/targets/filesystem/defaults/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
tested_filesystems:
|
||||
# key: fstype
|
||||
# fssize: size (Mo)
|
||||
# grow: True if resizefs is supported
|
||||
# Other minimal sizes:
|
||||
# - XFS: 20Mo
|
||||
# - Btrfs: 100Mo (50Mo when "--metadata single" is used)
|
||||
ext4: {fssize: 10, grow: True}
|
||||
ext4dev: {fssize: 10, grow: True}
|
||||
ext3: {fssize: 10, grow: True}
|
||||
ext2: {fssize: 10, grow: True}
|
||||
xfs: {fssize: 20, grow: False} # grow requires a mounted filesystem
|
||||
btrfs: {fssize: 100, grow: False} # grow not implemented
|
||||
# untested: lvm, requires a block device
|
||||
Reference in New Issue
Block a user