package tarlib

import "github.com/Microsoft/opengcs/service/gcsutils/tarlib"

Index

Functions

func CalcWhiteoutSize

func CalcWhiteoutSize(hdr *tar.Header, f fs.Filesystem, format archive.WhiteoutFormat) (bool, error)

CalcWhiteoutSize calculates the size taken by a possible whiteout file on the file system. It returns true if the given file was actually a whiteout file and false otherwise.

func CreateTarDisk

func CreateTarDisk(in io.Reader,
	f fs.Filesystem,
	options *archive.TarOptions,
	tmpdir string,
	disk *os.File) (uint64, error)

CreateTarDisk creates a file system image from the input tarstream with the given parameters and writes the image to the output file. It also returns the size of the image.

Source Files

tardisk.go whiteout.go

Version
v0.3.2
Published
Aug 8, 2017
Platform
windows/amd64
Imports
13 packages
Last checked
4 minutes ago

Tools for package owners.