]> git.ipfire.org Git - thirdparty/util-linux.git/commit
loopdev: accept ENOSYS for LOOP_CONFIGURE
authorAlex Xu <351006+Hello71@users.noreply.github.com>
Wed, 24 Nov 2021 20:34:10 +0000 (20:34 +0000)
committerGitHub <noreply@github.com>
Wed, 24 Nov 2021 20:34:10 +0000 (20:34 +0000)
commitf6385a6adeea6be255d68016977c5dd5eaab05da
treec409e89cb59b60f1fd8b56a6b8cce4f97c78f1d4
parent4441e511635f3e4116b59a77da1e4ca68552c3cc
loopdev: accept ENOSYS for LOOP_CONFIGURE

qemu returns this if it doesn't understand the ioctl. according to ioctl(2) it should actually return EINVAL, but considering that it's been doing this for at least 20 years already, I doubt there's much appetite for change, considering that it has a slightly better error message if propagated back to the user and changing it to EINVAL may break other programs.
lib/loopdev.c