code: func (p *cadvisorStatsProvider) ImageFsStats() (*statsapi.FsStats, error) {
  	imageFsInfo, err := p.cadvisor.ImagesFsInfo()
  	if err != nil {
  		return nil, fmt.Errorf("failed to get imageFs info: %v", err)
  	}
  	imageStats, err := p.imageService.ImageStats()
  	if err != nil || imageStats == nil {
  		return nil, fmt.Errorf("failed to get image stats: %v", err)
  	}
  
  	var imageFsInodesUsed *uint64
  	if imageFsInfo.Inodes != nil && imageFsInfo.InodesFree != nil {
  		imageFsIU := *imageFsInfo.Inodes - *imageFsInfo.InodesFree
  		imageFsInodesUsed = &imageFsIU
  	}
  
  	return &statsapi.FsStats{
  		Time:           metav1.NewTime(imageFsInfo.Timestamp),
  		AvailableBytes: &imageFsInfo.Available,
  		CapacityBytes:  &imageFsInfo.Capacity,
  		UsedBytes:      &imageStats.TotalStorageBytes,
  		InodesFree:     imageFsInfo.InodesFree,
  		Inodes:         imageFsInfo.Inodes,
  		InodesUsed:     imageFsInodesUsed,
  	}, nil
  }
docs: // ImageFsStats returns the stats of the filesystem for storing images.