| // SPDX-License-Identifier: GPL-2.0 |
| * Rio Karma partition info. |
| * Copyright (C) 2006 Bob Copeland (me@bobcopeland.com) |
| #include <linux/compiler.h> |
| int karma_partition(struct parsed_partitions *state) |
| data = read_part_sector(state, 0, §); |
| label = (struct disklabel *)data; |
| if (le16_to_cpu(label->d_magic) != KARMA_LABEL_MAGIC) { |
| for (i = 0 ; i < 2; i++, p++) { |
| if (slot == state->limit) |
| if (p->p_fstype == 0x4d && le32_to_cpu(p->p_size)) { |
| put_partition(state, slot, le32_to_cpu(p->p_offset), |
| strlcat(state->pp_buf, "\n", PAGE_SIZE); |