disk: methods of Filesystem take it by ref

Convert all methods of `Filesystem` to pass it by reference
not by value.
This commit is contained in:
Christian Kellner 2021-11-09 15:44:29 +00:00 committed by Tom Gundersen
parent 5bf4892077
commit 34781214cf

View file

@ -240,7 +240,7 @@ func (p *Partition) QEMUPartition() osbuild.QEMUPartition {
}
// Converts Filesystem to osbuild.QEMUFilesystem that encodes the same fs.
func (fs Filesystem) QEMUFilesystem() osbuild.QEMUFilesystem {
func (fs *Filesystem) QEMUFilesystem() osbuild.QEMUFilesystem {
return osbuild.QEMUFilesystem{
Type: fs.Type,
UUID: fs.UUID,