code: func (resizefs *ResizeFs) Resize(devicePath string, deviceMountPath string) (bool, error) {
  	format, err := resizefs.mounter.GetDiskFormat(devicePath)
  
  	if err != nil {
  		formatErr := fmt.Errorf("ResizeFS.Resize - error checking format for device %s: %v", devicePath, err)
  		return false, formatErr
  	}
  
  	// If disk has no format, there is no need to resize the disk because mkfs.*
  	// by default will use whole disk anyways.
  	if format == "" {
  		return false, nil
  	}
  
  	klog.V(3).Infof("ResizeFS.Resize - Expanding mounted volume %s", devicePath)
  	switch format {
  	case "ext3", "ext4":
  		return resizefs.extResize(devicePath)
  	case "xfs":
  		return resizefs.xfsResize(deviceMountPath)
  	}
  	return false, fmt.Errorf("ResizeFS.Resize - resize of format %s is not supported for device %s mounted at %s", format, devicePath, deviceMountPath)
  }
docs: // Resize perform resize of file system