]> git.ipfire.org Git - thirdparty/util-linux.git/commit
losetup: fix --direct-io
authorKarel Zak <kzak@redhat.com>
Wed, 9 Mar 2022 10:13:26 +0000 (11:13 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Mar 2022 10:30:22 +0000 (11:30 +0100)
commit5b3bb7da681abfcbbbd2cf75f23ab527ce5c8d51
treeb43b971e7f5b2901d7275d4c298a09db33c2a665
parent01dd2838b4f60888fc66ccb9aa0f44907d1851a4
losetup: fix --direct-io

losetup checks for empty lo_flags when A_CREATE (action) is not
requested, otherwise it prints

"the options %s are allowed during loop device setup only"

error message. We need to cleanup lo_flags when alone --direct-io
requested.

Fix also typo in man page, "losetup --direct-io" is the same as
"losetup --direct-io=on".

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/losetup.8.adoc
sys-utils/losetup.c