github.com/cilium/cilium@v1.16.2/pkg/mountinfo/mountinfo_unspecified.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  //go:build !linux
     5  
     6  package mountinfo
     7  
     8  import "errors"
     9  
    10  const (
    11  	// Dummy FilesystemType superblock magic numbers for filesystems,
    12  	// to be used for IsMountFS.
    13  	FilesystemTypeBPFFS = 0
    14  )
    15  
    16  // IsMountFS returns two boolean values, checking
    17  //   - whether the path is a mount point;
    18  //   - if yes, whether its filesystem type is mntType.
    19  //
    20  // Note that this function can not detect bind mounts,
    21  // and is not working properly when path="/".
    22  func IsMountFS(mntType int64, path string) (bool, bool, error) {
    23  	return false, false, errors.New("not implemented")
    24  }