]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: create EROFS loopdev only after ENOTBLK
authorKarel Zak <kzak@redhat.com>
Fri, 6 Dec 2024 11:41:09 +0000 (12:41 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2024 08:47:05 +0000 (09:47 +0100)
commitd20fa0c812107b4c1f9412d7e878b5c23a258c54
tree048d8842c1d5018fe903d8e14025ea7754d94424
parent139980a5969bf851feda873fe918f34bee8fc055
libmount: create EROFS loopdev only after ENOTBLK

The EROFS can mount regular files with a filesystem image without the
need for a loop device.

For backward compatibility with previous versions of EROFS, a loop
device will only be created if the first attempt to mount results
ENOTBLK error.

Addresses: https://github.com/util-linux/util-linux/pull/3288
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c
libmount/src/hook_loopdev.c