]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/dissect-image.c
dissect: when we invoke dissection on a loop device with partscan help the user
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 15:40:46 +0000 (17:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Oct 2017 15:54:56 +0000 (17:54 +0200)
commit759aaedc5ce8fb42c99fbccb374f35f063194a4c
tree5a46c66cb82c8a76a098f430919bda40cbd18f7d
parenteb38edce88ac2f511ed9593a1c25c58a77158219
dissect: when we invoke dissection on a loop device with partscan help the user

This adds some simply detection logic for cases where dissection is
invoked on an externally created loop device, and partitions have been
detected on it, but partition scanning so far was off. If this is
detected we now print a brief message indicating what the issue is,
instead of failing with a useless EINVAL message the kernel passed to
us.
src/dissect/dissect.c
src/nspawn/nspawn.c
src/shared/dissect-image.c