{
    "mode": "man",
    "parameter": "xfs_info",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/xfs_info/8/json",
    "generated": "2026-05-30T07:10:46Z",
    "synopsis": "xfsinfo [ -t mtab ] [ mount-point | block-device | file-image ]\nxfsinfo -V",
    "sections": {
        "NAME": {
            "content": "xfsinfo - display XFS filesystem geometry information\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xfsinfo [ -t mtab ] [ mount-point | block-device | file-image ]\nxfsinfo -V\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "xfsinfo displays geometry information about an existing XFS filesystem.  The mount-point ar‐\ngument is the pathname of a directory where the filesystem is mounted.  The  block-device  or\nfile-image  contain a raw XFS filesystem.  The existing contents of the filesystem are undis‐\nturbed.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-t",
                    "content": "/etc/mtab).   This  is  used  when working with filesystems mounted without writing to\n/etc/mtab file - refer to mount(8) for further details.  This  option  has  no  effect\nwith the block-device or file-image parameters.\n",
                    "flag": "-t"
                },
                {
                    "name": "-V -V",
                    "content": "",
                    "flag": "-V"
                }
            ]
        },
        "EXAMPLES": {
            "content": "Understanding xfsinfo output.\n\nSuppose one has the following \"xfsinfo /dev/sda\" output:\n\nmeta-data=/dev/pmem0             isize=512    agcount=8, agsize=5974144 blks\n=                       sectsz=512   attr=2, projid32bit=1\n=                       crc=1        finobt=1, sparse=1, rmapbt=1\n=                       reflink=1\ndata     =                       bsize=4096   blocks=47793152, imaxpct=25\n=                       sunit=32     swidth=128 blks\nnaming   =version 2              bsize=4096   ascii-ci=0, ftype=1\nlog      =internal log           bsize=4096   blocks=23336, version=2\n=                       sectsz=512   sunit=0 blks, lazy-count=1\nrealtime =none                   extsz=4096   blocks=0, rtextents=0\n\nHere,  the data section of the output indicates \"bsize=4096\", meaning the data block size for\nthis filesystem is 4096 bytes.  This section also shows  \"sunit=32  swidth=128  blks\",  which\nmeans the stripe unit is 32*4096 bytes = 128 kibibytes and the stripe width is 128*4096 bytes\n= 512 kibibytes.  A single stripe of this filesystem therefore consists of four stripe  units\n(128 blocks / 32 blocks per unit).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mkfs.xfs(8), md(4), lvm(8), mount(8).\n\n\n\nxfsinfo(8)",
            "subsections": []
        }
    },
    "summary": "xfsinfo - display XFS filesystem geometry information",
    "flags": [
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": "/etc/mtab). This is used when working with filesystems mounted without writing to /etc/mtab file - refer to mount(8) for further details. This option has no effect with the block-device or file-image parameters."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [
        "Understanding xfsinfo output.",
        "Suppose one has the following \"xfsinfo /dev/sda\" output:",
        "meta-data=/dev/pmem0             isize=512    agcount=8, agsize=5974144 blks",
        "=                       sectsz=512   attr=2, projid32bit=1",
        "=                       crc=1        finobt=1, sparse=1, rmapbt=1",
        "=                       reflink=1",
        "data     =                       bsize=4096   blocks=47793152, imaxpct=25",
        "=                       sunit=32     swidth=128 blks",
        "naming   =version 2              bsize=4096   ascii-ci=0, ftype=1",
        "log      =internal log           bsize=4096   blocks=23336, version=2",
        "=                       sectsz=512   sunit=0 blks, lazy-count=1",
        "realtime =none                   extsz=4096   blocks=0, rtextents=0",
        "Here,  the data section of the output indicates \"bsize=4096\", meaning the data block size for",
        "this filesystem is 4096 bytes.  This section also shows  \"sunit=32  swidth=128  blks\",  which",
        "means the stripe unit is 32*4096 bytes = 128 kibibytes and the stripe width is 128*4096 bytes",
        "= 512 kibibytes.  A single stripe of this filesystem therefore consists of four stripe  units",
        "(128 blocks / 32 blocks per unit)."
    ],
    "see_also": [
        {
            "name": "mkfs.xfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.xfs/8/json"
        },
        {
            "name": "md",
            "section": "4",
            "url": "https://www.chedong.com/phpMan.php/man/md/4/json"
        },
        {
            "name": "lvm",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/lvm/8/json"
        },
        {
            "name": "mount",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mount/8/json"
        },
        {
            "name": "xfsinfo",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/xfsinfo/8/json"
        }
    ]
}