summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 1ab07a2e7..87c6381c0 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -198,10 +198,6 @@ const (
unknown
)
-func (fs fsType) IsUnknown() bool {
- return fs == unknown
-}
-
type FilesystemInfo struct {
// A text file containing the list of paths installed on the partition.
FileListFile android.Path
@@ -209,7 +205,8 @@ type FilesystemInfo struct {
var FilesystemProvider = blueprint.NewProvider[FilesystemInfo]()
-func GetFsTypeFromString(ctx android.EarlyModuleContext, typeStr string) fsType {
+func (f *filesystem) fsType(ctx android.ModuleContext) fsType {
+ typeStr := proptools.StringDefault(f.properties.Type, "ext4")
switch typeStr {
case "ext4":
return ext4Type
@@ -223,11 +220,6 @@ func GetFsTypeFromString(ctx android.EarlyModuleContext, typeStr string) fsType
ctx.PropertyErrorf("type", "%q not supported", typeStr)
return unknown
}
-
-}
-
-func (f *filesystem) fsType(ctx android.ModuleContext) fsType {
- return GetFsTypeFromString(ctx, proptools.StringDefault(f.properties.Type, "ext4"))
}
func (f *filesystem) installFileName() string {