SGI

SGI — disk label specific functions

Functions

Types and Values

#define SGI_FLAG_BOOT
#define SGI_FLAG_SWAP

Description

Functions

fdisk_sgi_create_info ()

int
fdisk_sgi_create_info (struct fdisk_context *cxt);

This function add hint about SGI label (e.g. set "sgilabel" as volume name) to the first SGI volume. This is probably old SGI convention without any effect to the device partitioning.

Parameters

cxt

context

 

Returns

0 on success, <0 on error


fdisk_sgi_set_bootfile ()

int
fdisk_sgi_set_bootfile (struct fdisk_context *cxt);

Allows to set SGI boot file. The function uses Ask API for dialog with user.

Parameters

cxt

context

 

Returns

0 on success, <0 on error

Types and Values

SGI_FLAG_BOOT

#define SGI_FLAG_BOOT 1

SGI_FLAG_SWAP

#define SGI_FLAG_SWAP 2