feat(aa): rewrite the toAccess function to parse, convert and verify the access values.
This commit is contained in:
parent
05de39d92a
commit
656aa15836
10 changed files with 134 additions and 53 deletions
|
|
@ -6,7 +6,6 @@ package aa
|
|||
|
||||
import (
|
||||
"slices"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -37,7 +36,7 @@ func newMountConditionsFromLog(log map[string]string) MountConditions {
|
|||
if _, present := log["flags"]; present {
|
||||
return MountConditions{
|
||||
FsType: log["fstype"],
|
||||
Options: strings.Split(log["flags"], ", "),
|
||||
Options: Must(toValues(tokMOUNT, "flags", log["flags"])),
|
||||
}
|
||||
}
|
||||
return MountConditions{FsType: log["fstype"]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue