Lines Matching +full:partitions +full:- +full:table +full:- +full:offset
1 // SPDX-License-Identifier: GPL-2.0
3 * fs/partitions/sysv68.c
11 * Volume ID structure: on first 256-bytes sector of disk
20 * config block: second 256-bytes sector on disk
25 __be32 ios_slcblk; /* Slice table block number */
26 __be16 ios_slccnt; /* Number of entries in slice table */
40 * Slice Table Structure
45 __be32 blkoff; /* block offset of slice */
61 return -1; in sysv68_partition()
64 if (memcmp(b->dk_vid.vid_mac, "MOTOROLA", sizeof(b->dk_vid.vid_mac))) { in sysv68_partition()
68 slices = be16_to_cpu(b->dk_ios.ios_slccnt); in sysv68_partition()
69 i = be32_to_cpu(b->dk_ios.ios_slcblk); in sysv68_partition()
74 return -1; in sysv68_partition()
76 slices -= 1; /* last slice is the whole disk */ in sysv68_partition()
77 snprintf(tmp, sizeof(tmp), "sysV68: %s(s%u)", state->name, slices); in sysv68_partition()
78 strlcat(state->pp_buf, tmp, PAGE_SIZE); in sysv68_partition()
81 if (slot == state->limit) in sysv68_partition()
83 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition()
85 be32_to_cpu(slice->blkoff), in sysv68_partition()
86 be32_to_cpu(slice->nblocks)); in sysv68_partition()
88 strlcat(state->pp_buf, tmp, PAGE_SIZE); in sysv68_partition()
92 strlcat(state->pp_buf, "\n", PAGE_SIZE); in sysv68_partition()