2021-02-03 07:54:04 +01:00
|
|
|
---
|
2020-03-09 10:11:07 +01:00
|
|
|
tested_filesystems:
|
|
|
|
# key: fstype
|
|
|
|
# fssize: size (Mo)
|
|
|
|
# grow: True if resizefs is supported
|
|
|
|
# Other minimal sizes:
|
|
|
|
# - XFS: 20Mo
|
|
|
|
# - Btrfs: 150Mo (50Mo when "--metadata single" is used and 100Mb when on newer Fedora versions)
|
|
|
|
# - f2fs:
|
|
|
|
# - 1.2.0 requires at leat 116Mo
|
|
|
|
# - 1.7.0 requires at least 30Mo
|
|
|
|
# - 1.10.0 requires at least 38Mo
|
|
|
|
# - resizefs asserts when initial fs is smaller than 60Mo and seems to require 1.10.0
|
|
|
|
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
|
2022-04-13 13:16:27 +02:00
|
|
|
btrfs: {fssize: 150, grow: False} # grow requires a mounted filesystem
|
2021-05-18 06:46:45 +02:00
|
|
|
reiserfs: {fssize: 33, grow: False} # grow not implemented
|
2020-03-09 10:11:07 +01:00
|
|
|
vfat: {fssize: 20, grow: True}
|
|
|
|
ocfs2: {fssize: '{{ ocfs2_fssize }}', grow: False} # grow not implemented
|
|
|
|
f2fs: {fssize: '{{ f2fs_fssize|default(60) }}', grow: 'f2fs_version is version("1.10.0", ">=")'}
|
|
|
|
lvm: {fssize: 20, grow: True}
|
2021-05-18 06:46:45 +02:00
|
|
|
swap: {fssize: 10, grow: False} # grow not implemented
|
2021-07-10 16:37:31 +02:00
|
|
|
ufs: {fssize: 10, grow: True}
|
|
|
|
|
|
|
|
|
|
|
|
get_uuid_any: "blkid -c /dev/null -o value -s UUID {{ dev }}"
|
|
|
|
get_uuid_ufs: "dumpfs {{ dev }} | awk -v sb=superblock -v id=id '$1 == sb && $4 == id {print $6$7}'"
|
|
|
|
get_uuid_cmd: "{{ get_uuid_ufs if fstype == 'ufs' else get_uuid_any }}"
|