// Converts Partition to osbuild.QEMUPartition that encodes the same partition.
Converts Partition to osbuild.QEMUPartition that encodes the same partition.
// Converts Partition to osbuild . QEMUPartition that encodes the same partition .
func (p Partition) QEMUPartition() osbuild.QEMUPartition {
	var fs *osbuild.QEMUFilesystem
	if p.Filesystem != nil {
		f := p.Filesystem.QEMUFilesystem()
		fs = &f
	}
	return osbuild.QEMUPartition{
		Start:      p.Start,
		Size:       p.Size,
		Type:       p.Type,
		Bootable:   p.Bootable,
		UUID:       p.UUID,
		Filesystem: fs,
	}
}
func ( p Partition ) QEMUPartition ( ) osbuild . QEMUPartition { var fs * osbuild . QEMUFilesystem if p . Filesystem != nil { f := p . Filesystem . QEMUFilesystem ( ) fs = & f } return osbuild . QEMUPartition { Start : p . Start , Size : p . Size , Type : p . Type , Bootable : p . Bootable , UUID : p . UUID , Filesystem : fs , } }
Converts Partition to osbuild.QEMUPartition that encodes the same partition.
Converts Partition to osbuild . QEMUPartition that encodes the same partition .