code: func DeviceForPath(path string) (int32, error) {
  	stat := syscall.Stat_t{}
  	if err := syscall.Lstat(path, &stat); err != nil {
  		return 0, err
  	}
  	return stat.Dev, nil
  }
docs: // DeviceForPath returns the device ID for the specified volume.