code: def mkfs_xfs(device, force=False):
      
      cmd = ['mkfs.xfs']
      if force:
          cmd.append("-f")
  
      cmd += ['-i', 'size=1024', device]
      check_call(cmd)
docs: Format device with XFS filesystem.
  
      By default this should fail if the device already has a filesystem on it.
      :param device: Full path to device to format
      :ptype device: tr
      :param force: Force operation
      :ptype: force: boolean