Lines Matching defs:new_size
907 int btrfs_resize_loopback_fd(int fd, uint64_t new_size, bool grow_only) {
916 if (!FILE_SIZE_VALID(new_size))
920 if (new_size < 16*1024*1024)
921 new_size = 16*1024*1024;
948 if (new_size == (uint64_t) st.st_size)
951 if (grow_only && new_size < (uint64_t) st.st_size)
960 if (snprintf(args.name, sizeof(args.name), "%" PRIu64, new_size) >= (int) sizeof(args.name))
963 if (new_size < (uint64_t) st.st_size) {
969 if (ftruncate(backing_fd, new_size) < 0)
975 if (new_size > (uint64_t) st.st_size) {
988 int btrfs_resize_loopback(const char *p, uint64_t new_size, bool grow_only) {
995 return btrfs_resize_loopback_fd(fd, new_size, grow_only);