Lines Matching defs:partdef
11 static int parse_subpart(struct cmdline_subpart **subpart, char *partdef)
22 if (*partdef == '-') {
24 partdef++;
26 new_subpart->size = (sector_t)memparse(partdef, &partdef);
34 if (*partdef == '@') {
35 partdef++;
36 new_subpart->from = (sector_t)memparse(partdef, &partdef);
41 if (*partdef == '(') {
43 char *next = strchr(++partdef, ')');
51 length = min_t(int, next - partdef,
53 strncpy(new_subpart->name, partdef, length);
56 partdef = ++next;
62 if (!strncmp(partdef, "ro", 2)) {
64 partdef += 2;
67 if (!strncmp(partdef, "lk", 2)) {
69 partdef += 2;