Module driver:partition - Partition table driver

Partition table driver. This provides access to individual partitions within another block device.

Requires: driver:block driver:dnotify

Uses: service:sysconfig

Index

Declarations

partition.inc:26Protocol P.PARTITION.IN

PROTOCOL P.PARTITION.IN

Used for controlling/configuring block device partitions.

partition.inc:28Tag probe.device

probe.device; MOBILE []BYTE

Probe specified device for partitions, and create new block devices.

partition.inc:29Tag list.partitions

list.partitions

List partitions, responds with 'list' then 'ok'.

partition.inc:30Tag open.partition

open.partition; MOBILE []BYTE

Open a specific partition.

partition.inc:34Protocol P.PARTITION.OUT

PROTOCOL P.PARTITION.OUT

Returned data from partition device.

partition.inc:36Tag result

result; INT

Generic result.

partition.inc:37Tag list

list; MOBILE []BYTE

Device name.

partition.inc:38Tag ok

ok

Generic ok / end-of-list.

partition.inc:39Tag device.opened

device.opened; SHARED CT.BLOCK!

Successfully opened partition device.

partition.inc:43Channel type CT.PARTITION

CHAN TYPE CT.PARTITION

Channel-type for the partition device (accessed via IOCTL.PARTITION.OPENIF).

partition.inc:50Record PENTRY.IBMPC

DATA TYPE PENTRY.IBMPC

Partition table entry for IBM PC.

partition.inc:52Variable status

BYTE

0x80 = bootable, 0x00 = non-bootable, anything else = invalid.

partition.inc:53Variable s.head

BYTE

Starting head number for CHS.

partition.inc:54Variable s.sec.ch

BYTE

Starting sector (bits 0-5) and cylinder bits 8-9 (6-7).

partition.inc:55Variable s.cl

BYTE

Starting cylinder low bits.

partition.inc:56Variable type

BYTE

Partition type.

partition.inc:57Variable e.head

BYTE

Ending head number for CHS.

partition.inc:58Variable e.sec.ch

BYTE

Ending sector (bits 0-6) and cylinder bits 8-9 (6-7).

partition.inc:59Variable e.cl

BYTE

Ending cylinder low bits.

partition.inc:60Variable s.lba

INT32

LBA of first sector.

partition.inc:61Variable n.blocks

INT32

Number of blocks.

partition.inc:65Record PTYPE.DESC

DATA TYPE PTYPE.DESC

Partition type descriptor.

partition.inc:67Variable id

BYTE

ID byte.

partition.inc:68Variable name

[15]BYTE

Descriptive name.

partition.inc:69Variable name.len

INT

Significant characters in 'name'.

partition.inc:73Constant IBMPC.PTYPE.TABLE

VAL []PTYPE.DESC IBMPC.PTYPE.TABLE

IBM PC partition types (subset).