disk: implement Entity interface

Implement the base type of the new entity system, i.e. `Entity`,
for all relevant components:
 - PartitionTable
 - Partition
 - Filesystem

Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
Christian Kellner 2022-02-18 17:45:04 +00:00 committed by Tom Gundersen
parent 37e6fa8b95
commit 51a396e3f1
3 changed files with 12 additions and 0 deletions

View file

@ -18,6 +18,10 @@ type Filesystem struct {
FSTabPassNo uint64
}
func (fs *Filesystem) IsContainer() bool {
return false
}
// Clone the filesystem structure
func (fs *Filesystem) Clone() *Filesystem {
if fs == nil {