Documentation ¶
Index ¶
- Constants
- func CopyMtimes(source, dest *filesystem.FileSystem)
- func DeletedFilteredFiles(rootDir string, filt *filter.Filter) error
- func GetUnsupportedExt4fsOptions(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter) ([]string, error)
- func MakeBootable(fs *filesystem.FileSystem, ...) error
- func MakeExt4fs(deviceName, label string, unsupportedOptions []string, bytesPerInode uint64, ...) error
- func MakeKernelOptions(rootDevice, extraOptions string) string
- func ReplaceComputedFiles(fs *filesystem.FileSystem, computedFilesData *ComputedFilesData, ...) (objectserver.ObjectsGetter, error)
- func SpliceComputedFiles(fs *filesystem.FileSystem, computedFileList []ComputedFile) error
- func Unpack(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter, ...) error
- func WriteFstabEntry(writer io.Writer, source, mountPoint, fileSystemType, flags string, ...) error
- func WriteRaw(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter, ...) error
- func WriteRawWithOptions(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter, ...) error
- type BootInfoType
- type ComputedFile
- type ComputedFilesData
- type WriteRawOptions
Constants ¶
View Source
const (
BLKGETSIZE = 0x00001260
)
Variables ¶
This section is empty.
Functions ¶
func CopyMtimes ¶
func CopyMtimes(source, dest *filesystem.FileSystem)
CopyMtimes will copy modification times for files from the source to the destination if the file data and metadata (other than mtime) are identical. Directory entry inode pointers are invalidated by this operation, so this should be followed by a call to dest.RebuildInodePointers().
func GetUnsupportedExt4fsOptions ¶
func GetUnsupportedExt4fsOptions(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter) ([]string, error)
func MakeBootable ¶
func MakeBootable(fs *filesystem.FileSystem, deviceName, rootLabel, rootDir, kernelOptions string, doChroot bool, logger log.DebugLogger) error
func MakeExt4fs ¶
func MakeKernelOptions ¶
func ReplaceComputedFiles ¶
func ReplaceComputedFiles(fs *filesystem.FileSystem, computedFilesData *ComputedFilesData, objectsGetter objectserver.ObjectsGetter) ( objectserver.ObjectsGetter, error)
func SpliceComputedFiles ¶
func SpliceComputedFiles(fs *filesystem.FileSystem, computedFileList []ComputedFile) error
func Unpack ¶
func Unpack(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter, rootDir string, logger log.Logger) error
func WriteFstabEntry ¶
func WriteRaw ¶
func WriteRaw(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter, rawFilename string, perm os.FileMode, tableType mbr.TableType, minFreeSpace uint64, roundupPower uint64, makeBootable, allocateBlocks bool, logger log.DebugLogger) error
func WriteRawWithOptions ¶
func WriteRawWithOptions(fs *filesystem.FileSystem, objectsGetter objectserver.ObjectsGetter, rawFilename string, perm os.FileMode, tableType mbr.TableType, options WriteRawOptions, logger log.DebugLogger) error
Types ¶
type BootInfoType ¶
type BootInfoType struct { BootDirectory *filesystem.DirectoryInode InitrdImageDirent *filesystem.DirectoryEntry InitrdImageFile string KernelImageDirent *filesystem.DirectoryEntry KernelImageFile string KernelOptions string }
func GetBootInfo ¶
func GetBootInfo(fs *filesystem.FileSystem, rootLabel string, extraKernelOptions string) (*BootInfoType, error)
func (*BootInfoType) WriteBootloaderConfig ¶
func (bootInfo *BootInfoType) WriteBootloaderConfig(rootDir string, logger log.Logger) error
type ComputedFile ¶
func LoadComputedFiles ¶
func LoadComputedFiles(filename string) ([]ComputedFile, error)
func MergeComputedFiles ¶
func MergeComputedFiles(base, overlay []ComputedFile) []ComputedFile
type ComputedFilesData ¶
Click to show internal directories.
Click to hide internal directories.