func (v VolumePathHandler) GetDeviceBindMountRefs(devPath string, mapPath string) ([]string, error) {
	var refs []string
	files, err := ioutil.ReadDir(mapPath)
	if err != nil {
		return nil, err
	}
	for _, file := range files {
		if file.Mode()&os.ModeDevice != os.ModeDevice {
			continue
		}
		filename := file.Name()
		// TODO: Might need to check if the file is actually linked to devPath
		refs = append(refs, filepath.Join(mapPath, filename))
	}
	klog.V(5).Infof("GetDeviceBindMountRefs: refs %v", refs)
	return refs, nil
}
// GetDeviceBindMountRefs searches bind mounts under global map path
GetDeviceBindMountRefs searches bind mounts under global map path
// GetDeviceBindMountRefs searches bind mounts under global map path
func (v VolumePathHandler) GetDeviceBindMountRefs(devPath string, mapPath string) ([]string, error) {
	var refs []string
	files, err := ioutil.ReadDir(mapPath)
	if err != nil {
		return nil, err
	}
	for _, file := range files {
		if file.Mode()&os.ModeDevice != os.ModeDevice {
			continue
		}
		filename := file.Name()
		refs = append(refs, filepath.Join(mapPath, filename))
	}
	klog.V(5).Infof("GetDeviceBindMountRefs: refs %v", refs)
	return refs, nil
}
func ( v VolumePathHandler ) GetDeviceBindMountRefs ( devPath string , mapPath string ) ( [ ] string , error ) { var refs [ ] string files , err := ioutil . ReadDir ( mapPath ) if err != nil { return nil , err } for _ , file := range files { if file . Mode ( ) & os . ModeDevice != os . ModeDevice { continue } filename := file . Name ( ) refs = append ( refs , filepath . Join ( mapPath , filename ) ) } klog . V ( 5 ) . Infof ( " " , refs ) return refs , nil }
GetDeviceBindMountRefs searches bind mounts under global map path
GetDeviceBindMountRefs searches bind mounts under global map path
// TODO: Might need to check if the file is actually linked to devPath