Home
last modified time | relevance | path

Searched refs:direct_flags (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/shared/
Dloop-util.c666 int r, basic_flags, direct_flags, rdwr_flags; in loop_device_make_by_path() local
683 direct_flags = FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO) ? O_DIRECT : 0; in loop_device_make_by_path()
686 fd = open(path, basic_flags|direct_flags|rdwr_flags); in loop_device_make_by_path()
687 …if (fd < 0 && direct_flags != 0) /* If we had O_DIRECT on, and things failed with that, let's imme… in loop_device_make_by_path()
690 direct = direct_flags != 0; in loop_device_make_by_path()
698 fd = open(path, basic_flags|direct_flags|O_RDONLY); in loop_device_make_by_path()
699 if (fd < 0 && direct_flags != 0) /* as above */ in loop_device_make_by_path()
702 direct = direct_flags != 0; in loop_device_make_by_path()
715 … direct != (direct_flags != 0) ? " (O_DIRECT was requested but not supported)" : ""); in loop_device_make_by_path()