<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mkfs_xfs(device, force=False):
 """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"""

    cmd = ['mkfs.xfs']
    if force:
        cmd.append("-f")

    cmd += ['-i', 'size=1024', device]
    check_call(cmd)