Skip to content

Commit

Permalink
mountinfo: rename FstypeFilter -> FSTypeFilter
Browse files Browse the repository at this point in the history
To be in line with the recent Fstype -> FSType renaming.

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Oct 2, 2020
1 parent a03c53e commit ad7461a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mountinfo/mountinfo_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func ParentsFilter(path string) FilterFunc {
}
}

// FstypeFilter returns all entries that match provided fstype(s).
func FstypeFilter(fstype ...string) FilterFunc {
// FSTypeFilter returns all entries that match provided fstype(s).
func FSTypeFilter(fstype ...string) FilterFunc {
return func(m *Info) (bool, bool) {
for _, t := range fstype {
if m.FSType == t {
Expand Down
4 changes: 2 additions & 2 deletions mountinfo/mountinfo_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ func TestParseMountinfoFilters(t *testing.T) {
{PrefixFilter("nonexistent"), 0},
// 4 entries: /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup /sys /
{ParentsFilter("/sys/fs/cgroup/cpu,cpuacct"), 4},
{FstypeFilter("pstore"), 1},
{FstypeFilter("proc", "sysfs"), 2},
{FSTypeFilter("pstore"), 1},
{FSTypeFilter("proc", "sysfs"), 2},
}

var r bytes.Reader
Expand Down

0 comments on commit ad7461a

Please sign in to comment.