On Tue, Nov 17, 2015 at 10:32:46PM +0800, Ming Lei wrote: > include/loopdev.h | 4 ++++ > lib/loopdev.c | 40 ++++++++++++++++++++++++++++++++++++++++ > sys-utils/losetup.c | 33 +++++++++++++++++++++++++++++++-- > 3 files changed, 75 insertions(+), 2 deletions(-) > > > [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bc07c10a3603a5ab3ef01ba42b3d41f9ac63d1b6 > > V1: > - support to set direct IO for 'new' device, such as > loseutp --direct-io 1 -f test.img Applied, thanks! I have a little bit changed the command line option to: --direct-io[=on|off] where the default is "on", so you can use: losetup -f --direct-io file.img to enable direct-io, to disable you have to use: losetup --direct-io=off /dev/loop0 I guess the most common usage will be to enable direct I/O :-) https://github.com/karelzak/util-linux/commit/f98d9641a371421640a8f1cfe497030758f86dca Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html