Changeset e47a032 in mainline for uspace/srv/bd/hr/hr.c


Ignore:
Timestamp:
2024-10-28T20:02:39Z (7 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
9fc1d36d
Parents:
066fed9
Message:

hr: base for status handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/hr.c

    r066fed9 re47a032  
    134134        }
    135135
     136        /*
     137         * If there was a missing device provided
     138         * for creation of a new array, abort
     139         */
     140        if (!assemble) {
     141                for (i = 0; i < cfg->dev_no; i++) {
     142                        if (cfg->devs[i] == 0) {
     143                                free(cfg);
     144                                async_answer_0(icall, EINVAL);
     145                                return;
     146                        }
     147                }
     148        }
     149
    136150        new_volume = calloc(1, sizeof(hr_volume_t));
    137151        if (new_volume == NULL) {
     
    302316                info.strip_size = volume->strip_size;
    303317                info.bsize = volume->bsize;
     318                info.status = volume->status;
    304319
    305320                if (!async_data_read_receive(&call, &size)) {
Note: See TracChangeset for help on using the changeset viewer.