Welcome to NYCU CSIT Mirror site

DOS (MBR): libfdisk Reference Manual

DOS (MBR)

DOS (MBR) — disk label specific functions

Types and Values

#define DOS_FLAG_ACTIVE

Description

Functions

fdisk_dos_enable_compatible ()

int
fdisk_dos_enable_compatible (struct fdisk_label *lb,
                             int enable);

Enables deprecated DOS compatible mode, in this mode library checks for cylinders boundary, cases about CHS addressing and another obscure things.

Parameters

lb

DOS label (see fdisk_get_label())

 

enable

0 or 1

 

Returns

0 on success, <0 on error.


fdisk_dos_is_compatible ()

int
fdisk_dos_is_compatible (struct fdisk_label *lb);

Parameters

lb

DOS label

 

Returns

0 if DOS compatibility disabled, 1 if enabled


fdisk_dos_move_begin ()

int
fdisk_dos_move_begin (struct fdisk_context *cxt,
                      size_t i);

Types and Values

DOS_FLAG_ACTIVE

#define DOS_FLAG_ACTIVE 1