Changeset d858a660 in mainline for uspace/srv
- Timestamp:
- 2017-07-04T15:05:43Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c2c7d2
- Parents:
- 2456fd0
- Location:
- uspace/srv/volsrv
- Files:
-
- 2 edited
-
part.c (modified) (3 diffs)
-
types/part.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
r2456fd0 rd858a660 186 186 part->pcnt = vpc_fs; 187 187 part->fstype = fst->fstype; 188 part->label = str_dup(info.label); 189 if (part->label == NULL) 190 goto error; 188 191 } else { 189 192 log_msg(LOG_DEFAULT, LVL_NOTE, "Partition does not contain " … … 198 201 199 202 part->pcnt = empty ? vpc_empty : vpc_unknown; 203 part->label = str_dup(""); 204 if (part->label == NULL) 205 goto error; 200 206 } 201 207 … … 327 333 pinfo->pcnt = part->pcnt; 328 334 pinfo->fstype = part->fstype; 335 str_cpy(pinfo->label, sizeof(pinfo->label), part->label); 329 336 return EOK; 330 337 } -
uspace/srv/volsrv/types/part.h
r2456fd0 rd858a660 52 52 /** Filesystem type */ 53 53 vol_fstype_t fstype; 54 /** Volume label */ 55 char *label; 54 56 } vol_part_t; 55 57
Note:
See TracChangeset
for help on using the changeset viewer.
