loop-util: tweak codepath when a loopback file is "created" from an existing block...
authorLennart Poettering <lennart@poettering.net>
Mon, 31 Dec 2018 16:00:10 +0000 (17:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Jan 2019 16:50:39 +0000 (17:50 +0100)
commit16420be1fdd4a1430b4216d1ae9155914175ed42
tree3156ef4b4392f767f8f1477eeedf775439b8069e
parent26c1be0fdcc2b4ce4b05d9174c0166152bdb9aa8
loop-util: tweak codepath when a loopback file is "created" from an existing block device

Be more careful with initialized of the 'relinquished' boolean field,
and let's return the fd, like we do for the regular codepath, too.
src/shared/loop-util.c