Changeset b7a4d06 in mainline for uspace/srv/volsrv/volsrv.c


Ignore:
Timestamp:
2015-07-18T12:55:12Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c43db5f
Parents:
70815a24
Message:

Most of extended (but not logical) partition support.

File:
1 edited

Legend:

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

    r70815a24 rb7a4d06  
    4343#include <stdlib.h>
    4444#include <task.h>
     45#include <vol.h>
    4546
    4647#include "disk.h"
     
    118119        service_id_t sid;
    119120        vol_disk_t *disk;
     121        vol_disk_info_t dinfo;
    120122        int rc;
    121123
     
    127129        }
    128130
    129         async_answer_2(iid, rc, disk->dcnt, disk->ltype);
     131        rc = vol_disk_get_info(disk, &dinfo);
     132        if (rc != EOK) {
     133                async_answer_0(iid, EIO);
     134                return;
     135        }
     136
     137        async_answer_3(iid, rc, dinfo.dcnt, dinfo.ltype, dinfo.flags);
    130138}
    131139
     
    169177        }
    170178
    171         rc = vol_disk_empty(disk);
     179        rc = vol_disk_empty_disk(disk);
    172180        if (rc != EOK) {
    173181                async_answer_0(iid, EIO);
Note: See TracChangeset for help on using the changeset viewer.