Skip to content

Commit

Permalink
losetup.8: Clarify --direct-io
Browse files Browse the repository at this point in the history
See e.g. containers/bootc#375 (comment)

The phrasing here was in my opinion technically correct but quite confusing and easy to misunderstand.

Let's be very clear:

- The default is *off*
- You can turn it on in two ways
- You can also explicitly turn it off

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Apr 29, 2024
1 parent 926b607 commit a974a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys-utils/losetup.8.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Force the kernel to scan the partition table on a newly created loop device. Not
Set up a read-only loop device.

*--direct-io*[**=on**|*off*]::
Enable or disable direct I/O for the backing file. The optional argument can be either *on* or *off*. If the optional argument is omitted, it defaults to *on*.
Enable or disable direct I/O for the backing file. The default is *off*. Specifying either *--direct-io* or *--direct-io=on* will enable it. But, *--direct-io=off* can be provided to explicitly turn it off.

*-v*, *--verbose*::
Verbose mode.
Expand Down

0 comments on commit a974a85

Please sign in to comment.