Changeset 4b6635a7 in mainline for uspace/srv/volsrv/part.c
- Timestamp:
- 2015-10-12T15:42:23Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- edebb4a1
- Parents:
- 6a0db524
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
r6a0db524 r4b6635a7 43 43 #include <str.h> 44 44 45 #include "empty.h" 45 46 #include "part.h" 46 47 #include "types/part.h" … … 130 131 { 131 132 vol_part_t *part; 133 bool empty; 132 134 int rc; 133 135 … … 148 150 149 151 log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name); 150 151 part->pcnt = vpc_unknown; 152 rc = vol_part_is_empty(sid, &empty); 153 if (rc != EOK) { 154 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed determining if " 155 "partition is empty."); 156 goto error; 157 } 158 159 part->pcnt = empty ? vpc_empty : vpc_unknown; 152 160 list_append(&part->lparts, &vol_parts); 153 161
Note:
See TracChangeset
for help on using the changeset viewer.