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


Ignore:
Timestamp:
2015-07-18T12:55:12Z (10 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/disk.c

    r70815a24 rb7a4d06  
    271271}
    272272
    273 int vol_disk_empty(vol_disk_t *disk)
     273int vol_disk_empty_disk(vol_disk_t *disk)
    274274{
    275275        int rc;
     
    286286}
    287287
     288int vol_disk_get_info(vol_disk_t *disk, vol_disk_info_t *dinfo)
     289{
     290        vbd_disk_info_t vdinfo;
     291        int rc;
     292
     293        dinfo->dcnt = disk->dcnt;
     294
     295        if (disk->dcnt == dc_label) {
     296                rc = vbd_disk_info(vbd, disk->svc_id, &vdinfo);
     297                if (rc != EOK)
     298                        return rc;
     299
     300                dinfo->ltype = vdinfo.ltype;
     301                dinfo->flags = vdinfo.flags;
     302        }
     303
     304        return EOK;
     305}
     306
    288307
    289308/** @}
Note: See TracChangeset for help on using the changeset viewer.