Lines Matching +full:partition +full:-
4 * Copyright (C) 1996-1997 Paul H. Hargrove
8 * Original code to handle the new style Mac partition table based on
15 * The new style Mac partition map
17 * For each partition on the media there is a physical block (512-byte
24 __be32 pmMapBlkCnt; /* partition blocks count */
25 __be32 pmPyPartStart; /* physical block start of partition */
26 __be32 pmPartBlkCnt; /* physical block count of partition */
29 partition */
32 partition */
37 * The old style Mac partition map
39 * The partition map consists for a 2-byte signature followed by an
40 * array of these structures. The map is terminated with an all-zero
55 * Parse the partition map looking for the
56 * start and length of the 'part'th HFS partition.
65 res = -ENOENT; in hfs_part_find()
68 return -EIO; in hfs_part_find()
76 pm = (struct old_pmap *)bh->b_data; in hfs_part_find()
77 p = pm->pdEntry; in hfs_part_find()
80 if (p->pdStart && p->pdSize && in hfs_part_find()
81 p->pdFSID == cpu_to_be32(0x54465331)/*"TFS1"*/ && in hfs_part_find()
82 (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) { in hfs_part_find()
83 *part_start += be32_to_cpu(p->pdStart); in hfs_part_find()
84 *part_size = be32_to_cpu(p->pdSize); in hfs_part_find()
94 pm = (struct new_pmap *)bh->b_data; in hfs_part_find()
95 size = be32_to_cpu(pm->pmMapBlkCnt); in hfs_part_find()
97 if (!memcmp(pm->pmPartType,"Apple_HFS", 9) && in hfs_part_find()
98 (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) { in hfs_part_find()
99 *part_start += be32_to_cpu(pm->pmPyPartStart); in hfs_part_find()
100 *part_size = be32_to_cpu(pm->pmPartBlkCnt); in hfs_part_find()
107 return -EIO; in hfs_part_find()
108 if (pm->pmSig != cpu_to_be16(HFS_NEW_PMAP_MAGIC)) in hfs_part_find()