Changeset ebb1489 in mainline for uspace/lib/fdisk/src/fdisk.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/src/fdisk.c

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2015 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    810810}
    811811
     812/** Destroy partition.
     813 *
     814 * @param part Partition
     815 * @return EOK on success or error code
     816 */
    812817errno_t fdisk_part_destroy(fdisk_part_t *part)
    813818{
    814819        errno_t rc;
     820
     821        rc = vol_part_eject(part->dev->fdisk->vol, part->svc_id);
     822        if (rc != EOK)
     823                return EIO;
    815824
    816825        rc = vbd_part_delete(part->dev->fdisk->vbd, part->part_id);
Note: See TracChangeset for help on using the changeset viewer.