Lines Matching refs:info
44 struct loop_info64 info; in loop_is_bound() local
48 if (ioctl(fd, LOOP_GET_STATUS64, &info) < 0) { in loop_is_bound()
226 if (c->info.lo_sizelimit != 0) { in loop_configure()
237 if (z != c->info.lo_sizelimit) { in loop_configure()
243 if (FLAGS_SET(c->info.lo_flags, LO_FLAGS_PARTSCAN)) { in loop_configure()
301 info_copy = c->info; in loop_configure()
329 if (c->info.lo_offset != 0 || c->info.lo_sizelimit != 0) in loop_configure()
334 if (FLAGS_SET(c->info.lo_flags, LO_FLAGS_DIRECT_IO)) { in loop_configure()
417 if (ioctl(fd, LOOP_GET_STATUS64, &config.info) >= 0) { in loop_device_make_internal()
422 VALGRIND_MAKE_MEM_DEFINED(&config.info, sizeof(config.info)); in loop_device_make_internal()
424 nr = config.info.lo_number; in loop_device_make_internal()
505 .info = { in loop_device_make_internal()
577 struct loop_info64 info; in loop_device_make_internal() local
579 if (ioctl(loop_with_fd, LOOP_GET_STATUS64, &info) < 0) in loop_device_make_internal()
583 VALGRIND_MAKE_MEM_DEFINED(&info, sizeof(info)); in loop_device_make_internal()
594 if (!FLAGS_SET(info.lo_flags, LO_FLAGS_DIRECT_IO)) in loop_device_make_internal()
774 struct loop_info64 info; in loop_device_open() local
792 if (ioctl(loop_fd, LOOP_GET_STATUS64, &info) >= 0) { in loop_device_open()
795 VALGRIND_MAKE_MEM_DEFINED(&info, sizeof(info)); in loop_device_open()
797 nr = info.lo_number; in loop_device_open()
908 struct loop_info64 info; in loop_device_refresh_size() local
923 if (ioctl(d->fd, LOOP_GET_STATUS64, &info) < 0) in loop_device_refresh_size()
928 VALGRIND_MAKE_MEM_DEFINED(&info, sizeof(info)); in loop_device_refresh_size()
933 if (info.lo_sizelimit == size && info.lo_offset == offset) in loop_device_refresh_size()
937 info.lo_sizelimit = size; in loop_device_refresh_size()
939 info.lo_offset = offset; in loop_device_refresh_size()
941 return RET_NERRNO(ioctl(d->fd, LOOP_SET_STATUS64, &info)); in loop_device_refresh_size()