vorteil

package
v0.0.0-...-7547c2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2022 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ext2FS    = Format("ext2")
	Ext4FS    = Format("ext4")
	XFS       = Format("xfs")
	UnknownFS = Format("unknown")
)

FSType vars ...

Functions

func LogDebugEarly

func LogDebugEarly(format string, values ...interface{})

LogDebugEarly creates an early debug logging function before logging is configured. Used from the command

func RebootForTools

func RebootForTools()

func ShutdownForTools

func ShutdownForTools()

func SystemPanic

func SystemPanic(format string, values ...interface{})

SystemPanic prints error message and shuts down the system

func UptimeForTools

func UptimeForTools() C.int

Types

type CbID

type CbID struct {
	Idx uint32
	Val uint32
}

CbID ...

type CnMsg

type CnMsg struct {
	ID    CbID
	Seq   uint32
	Ack   uint32
	Len   uint16
	Flags uint16
}

CnMsg ...

type Format

type Format string

Format variables are used to identify fs formats

type GPTHeader

type GPTHeader struct {
	Signature      uint64
	Revision       [4]byte
	HeaderSize     uint32
	Crc            uint32
	Reserved0      uint32
	CurrentLBA     uint64
	BackupLBA      uint64
	FirstUsableLBA uint64
	LastUsableLBA  uint64
	GUID           [16]byte
	StartLBAParts  uint64
	NoOfParts      uint32
	SizePartEntry  uint32
	CrcParts       uint32
	Reserved1      [420]byte
}

GPTHeader for disk expansion

type PartitionEntry

type PartitionEntry struct {
	TypeGUID   [16]byte
	PartGUID   [16]byte
	FirstLBA   uint64
	LastLBA    uint64
	Attributes uint64
	Name       [72]byte
}

PartitionEntry for disk expansion

type ProcEventHeader

type ProcEventHeader struct {
	What        uint32
	CPU         uint32
	Timestamp   uint64
	ProcessPid  uint32
	ProcessTgid uint32
}

ProcEventHeader ...

type ProtectiveMBREntry

type ProtectiveMBREntry struct {
	Bootloader      [446]byte
	Status          byte
	Reserved0       byte
	Reserved1       byte
	Reserved2       byte
	PartitionType   byte
	Reserved3       byte
	Reserved4       byte
	Reserved5       byte
	FirstLBA        uint32
	NumberOfSectors uint32
	Reserved6       [48]byte
	MagicNumber     [2]byte
}

ProtectiveMBREntry for disk expansion

type Vinitd

type Vinitd struct {
	// contains filtered or unexported fields
}

Vinitd contains all information to run and manage this instance

func New

func New() *Vinitd

New returns a new vinitd object

func (*Vinitd) Launch

func (v *Vinitd) Launch() error

Launch starts all applications in vcfg

func (*Vinitd) PostSetup

func (v *Vinitd) PostSetup() error

PostSetup finishes tasks which need network access which is DNS, NFS and NTP

func (*Vinitd) PreSetup

func (v *Vinitd) PreSetup() error

PreSetup prepares directories, grows disk to max size and remounts disk with new args

func (*Vinitd) Setup

func (v *Vinitd) Setup() error

Setup is the main routine during preparing a vorteil machine. It prepares stdout, poweroff events, network and basic system configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL