Searched defs:new_size (Results 1 - 4 of 4) sorted by relevance
/systemd/src/shared/ |
H A D | machine-pool.c | 373 uint64_t old_size, new_size, max_add; local 401 new_size = ((uint64_t) b.f_blocks - (uint64_t) b.f_bavail) * (uint64_t) b.f_bsize * 3; 404 if (new_size < VAR_LIB_MACHINES_SIZE_START) 405 new_size = VAR_LIB_MACHINES_SIZE_START; 408 if (new_size < old_size) 412 if (new_size > old_size + max_add) 413 new_size = old_size + max_add; 415 r = btrfs_resize_loopback("/var/lib/machines", new_size, true); 422 (void) btrfs_qgroup_set_limit("/var/lib/machines", 0, new_size); 423 (void) btrfs_subvol_set_subtree_quota_limit("/var/lib/machines", 0, new_size); [all...] |
/systemd/src/basic/ |
H A D | btrfs-util.c | 907 int btrfs_resize_loopback_fd(int fd, uint64_t new_size, bool grow_only) { argument 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_ 988 btrfs_resize_loopback(const char *p, uint64_t new_size, bool grow_only) argument [all...] |
/systemd/src/journal/ |
H A D | journal-file.c | 380 uint64_t old_size, new_size; local 397 new_size = PAGE_ALIGN(offset + size); 398 if (new_size < le64toh(f->header->header_size)) 399 new_size = le64toh(f->header->header_size); 401 if (new_size <= old_size) { 417 if (f->metrics.max_size > 0 && new_size > f->metrics.max_size) 420 if (new_size > f->metrics.min_size && f->metrics.keep_free > 0) { 428 if (new_size - old_size > available) 434 new_size = ((new_size [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-message.c | 161 size_t old_size, new_size, start; local 170 new_size = start + sz; 172 if (new_size < start || 173 new_size > (size_t) ((uint32_t) -1)) 176 if (old_size == new_size) 180 np = realloc(m->header, ALIGN8(new_size)); 188 np = malloc(ALIGN8(new_size)); 201 m->fields_size = new_size - sizeof(struct bus_header); 217 m->header_offsets[m->n_header_offsets++] = new_size - sizeof(struct bus_header);
|
Completed in 770 milliseconds