Lines Matching defs:capacity
977 array_attr->capacity = size;
1230 uint64_t offset, capacity;
1245 arraypart_attrs[i].size = disk_attr->capacity;
1269 if ((disk_attr->capacity - offset) > arraypart_attrs[i].size) {
1271 arraypart_attrs[i].size = disk_attr->capacity -
1276 capacity = OBJ_ATTR_NONE;
1292 if (capacity > arraypart_attrs[i].size)
1293 capacity = arraypart_attrs[i].size;
1299 capacity = capacity * disk_num;
1302 capacity = capacity * disk_num / 2;
1305 capacity = capacity * disk_num / 2;
1308 capacity = capacity * (disk_num - 1);
1311 capacity = capacity * disk_num / 2;
1314 capacity = capacity * (disk_num - sub_array_num);
1320 return (capacity);
3386 * be with of minimum capacity
3389 min_disk_capacity = disk_attr->capacity;
3391 /* Can not specify capacity for hostraid */
3392 if (array_attr->capacity != 0) {
3396 } else if (min_disk_capacity > disk_attr->capacity) {
3475 array_attr2.capacity = OBJ_ATTR_NONE;
3481 /* Calculate the maximum capacity */
3482 array_attr2.capacity = raid_space_noalign(raid_tab,
3499 /* There's no enough space for specified capacity */
3500 if (array_attr->capacity > array_attr2.capacity) {
3505 /* capacity == 0, allocate maximum space */
3506 if (array_attr->capacity == 0)
3507 array_attr->capacity = array_attr2.capacity;
3511 } else if (array_attr2.capacity < array_attr->capacity) {
3513 array_attr->capacity = array_attr2.capacity;
3518 if (array_attr->capacity < ARRAYPART_MIN_SIZE * disk_cnt) {
3690 if (arraypart_attr->size > disk_attr->capacity) {
3697 disk_attr->capacity) {