Documentation ¶
Index ¶
- Variables
- func LogDebugEarly(format string, values ...interface{})
- func RebootForTools()
- func ShutdownForTools()
- func SystemPanic(format string, values ...interface{})
- func UptimeForTools() C.int
- type CbID
- type CnMsg
- type Format
- type GPTHeader
- type PartitionEntry
- type ProcEventHeader
- type ProtectiveMBREntry
- type Vinitd
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 ¶
Types ¶
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 (*Vinitd) PostSetup ¶
PostSetup finishes tasks which need network access which is DNS, NFS and NTP
Click to show internal directories.
Click to hide internal directories.