Changeset 603c1d1f in mainline for uspace/srv/volsrv/volsrv.c


Ignore:
Timestamp:
2015-07-05T18:53:00Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf7ddde
Parents:
99c23405
Message:

Persistent partition table creation and destruction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/volsrv/volsrv.c

    r99c23405 r603c1d1f  
    146146        }
    147147
    148         disk->dcnt = dc_label;
    149         disk->ltype = ltype;
     148        rc = vol_disk_label_create(disk, ltype);
     149        if (rc != EOK) {
     150                async_answer_0(iid, EIO);
     151                return;
     152        }
    150153
    151154        async_answer_0(iid, EOK);
     
    166169        }
    167170
    168         disk->dcnt = dc_empty;
     171        rc = vol_disk_empty(disk);
     172        if (rc != EOK) {
     173                async_answer_0(iid, EIO);
     174                return;
     175        }
    169176
    170177        async_answer_0(iid, EOK);
Note: See TracChangeset for help on using the changeset viewer.