]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto-generator: emit warnings and fail if we fail to query mount points 8812/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 25 Apr 2018 08:06:23 +0000 (10:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 25 Apr 2018 10:22:06 +0000 (12:22 +0200)
commite137880b2a58bd899c7d0e15dc24aa20fe02ab31
tree861675b831cced337f6e0473d30e617eb8e783b1
parent2aa2860bc3ec70e39217795b9ceac759b4bf1735
gpt-auto-generator: emit warnings and fail if we fail to query mount points

Right now gpt-auto-generator will iterate through all mount entries, and
silently ignore failure to check if the mount point target is empty.
This can hide real errors (in particular from MAC), so instead let's warn
and return failure at the end if this happens. We will still iterate
over other candidates, so there should be no change in behaviour.

Logging is moved into path_is_busy() to avoid the duplication of the same
logging code in the two callers.
src/gpt-auto-generator/gpt-auto-generator.c