Searched refs:loop_flags (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/shared/ |
D | loop-util.c | 396 uint32_t loop_flags, in loop_device_make_internal() argument 476 if (FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO) != FLAGS_SET(f_flags, O_DIRECT)) { in loop_device_make_internal() 484 …direct_io_fd = fd_reopen(fd, (FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO) ? O_DIRECT : 0)|O_CLOEXEC|… in loop_device_make_internal() 486 if (!FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO)) in loop_device_make_internal() 491 loop_flags &= ~LO_FLAGS_DIRECT_IO; in loop_device_make_internal() 507 ….lo_flags = (loop_flags & ~LO_FLAGS_READ_ONLY) | ((open_flags & O_ACCMODE) == O_RDONLY ? LO_FLAGS_… in loop_device_make_internal() 576 if (FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO)) { in loop_device_make_internal() 630 static uint32_t loop_flags_mangle(uint32_t loop_flags) { in loop_flags_mangle() argument 637 …return UPDATE_FLAG(loop_flags, LO_FLAGS_DIRECT_IO, r != 0); /* Turn on LO_FLAGS_DIRECT_IO by defau… in loop_flags_mangle() 645 uint32_t loop_flags, in loop_device_make() argument [all …]
|
D | loop-util.h | 22 int loop_device_make(int fd, int open_flags, uint64_t offset, uint64_t size, uint32_t loop_flags, L… 23 int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **re…
|