diff options
author | Mina Galić <me+git@igalic.co> | 2020-11-19 23:19:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 17:19:16 -0500 |
commit | 12ef7541c2d0c6b2cd510f95fda53ca9c8333064 (patch) | |
tree | 999c8ada4b030b555f5087715a9c5380361efc2a /tests/integration_tests | |
parent | 73e704e3690611625e3cda060a7a6a81492af9d2 (diff) | |
download | vyos-cloud-init-12ef7541c2d0c6b2cd510f95fda53ca9c8333064.tar.gz vyos-cloud-init-12ef7541c2d0c6b2cd510f95fda53ca9c8333064.zip |
cc_resizefs on FreeBSD: Fix _can_skip_ufs_resize (#655)
On FreeBSD, if a UFS has trim: (-t) or MAC multilabel: (-l) flag, resize
FS fail, because the _can_skip_ufs_resize check gets tripped up by the
missing options.
This was reported at FreeBSD Bugzilla:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250496 and as
LP: #1901958
Rather than fixing the parser as in the patches proposed there (and
attempted in #636) this pull-request rips out all of it, and simplifies
the code. We now use `growfs -N` and check if that returns an error. If
it returns the correct kind of error, we can skip the resize, because we
either are at the correct size, or the filesystem in question is broken
or not UFS. If it returns the wrong kind of error, we just re-raise it.
LP: #1901958
Diffstat (limited to 'tests/integration_tests')
0 files changed, 0 insertions, 0 deletions