{
    "mode": "man",
    "parameter": "xfs_estimate",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/xfs_estimate/8/json",
    "generated": "2026-05-30T07:10:14Z",
    "synopsis": "xfsestimate [ -h ] [ -b blocksize ] [ -i logsize ]\n[ -e logsize ] [ -v ] directory ...\nxfsestimate -V",
    "sections": {
        "NAME": {
            "content": "xfsestimate - estimate the space that an XFS filesystem will take\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xfsestimate [ -h ] [ -b blocksize ] [ -i logsize ]\n[ -e logsize ] [ -v ] directory ...\nxfsestimate -V\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "For each directory argument, xfsestimate estimates the space that directory would take if it\nwere copied to an XFS filesystem.  xfsestimate does not cross mount points.   The  following\ndefinitions are used:\nKB = *1024\nMB = *1024*1024\nGB = *1024*1024*1024\n\nThe xfsestimate options are:\n",
            "subsections": [
                {
                    "name": "-b",
                    "content": "Use  blocksize  instead of the default blocksize of 4096 bytes.  The modifier k can be\nused after the number to indicate multiplication by 1024.  For example,\n\nxxffsseessttiimmaattee --bb 6644kk //\n\nrequests an estimate of the space required by the directory / on an XFS filesystem us‐\ning a blocksize of 64K (65536) bytes.\n",
                    "flag": "-b"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-h",
                    "content": "",
                    "flag": "-h"
                },
                {
                    "name": "-i, -e",
                    "content": "Use  logsize instead of the default log size of 1000 blocks.  -i refers to an internal\nlog, while -e refers to an external log.  The modifiers k or m can be used  after  the\nnumber to indicate multiplication by 1024 or 1048576, respectively.\n\nFor example,\n\nxxffsseessttiimmaattee --ii 11mm //\n\nrequests an estimate of the space required by the directory / on an XFS filesystem us‐\ning an internal log of 1 megabyte.\n",
                    "flag": "-e"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                }
            ]
        },
        "EXAMPLES": {
            "content": "% xxffsseessttiimmaattee --ee 1100mm //vvaarr//ttmmpp\n/var/tmp will take about 4.2 megabytes\nwith the external log using 2560 blocks or about 10.0 megabytes\n\n% xxffsseessttiimmaattee --vv --ee 1100mm //vvaarr//ttmmpp\ndirectory                     bsize   blocks    megabytes    logsize\n/var/tmp                       4096      792        4.0MB   10485760\n\n% xxffsseessttiimmaattee --vv //vvaarr//ttmmpp\ndirectory                     bsize   blocks    megabytes    logsize\n/var/tmp                       4096     3352       14.0MB   10485760\n\n% xxffsseessttiimmaattee //vvaarr//ttmmpp\n/var/tmp will take about 14.0 megabytes\n\n\n\nxfsestimate(8)",
            "subsections": []
        }
    },
    "summary": "xfsestimate - estimate the space that an XFS filesystem will take",
    "flags": [
        {
            "flag": "-b",
            "long": null,
            "arg": null,
            "description": "Use blocksize instead of the default blocksize of 4096 bytes. The modifier k can be used after the number to indicate multiplication by 1024. For example, xxffsseessttiimmaattee --bb 6644kk // requests an estimate of the space required by the directory / on an XFS filesystem us‐ ing a blocksize of 64K (65536) bytes."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-e",
            "long": null,
            "arg": null,
            "description": "Use logsize instead of the default log size of 1000 blocks. -i refers to an internal log, while -e refers to an external log. The modifiers k or m can be used after the number to indicate multiplication by 1024 or 1048576, respectively. For example, xxffsseessttiimmaattee --ii 11mm // requests an estimate of the space required by the directory / on an XFS filesystem us‐ ing an internal log of 1 megabyte."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [
        "% xxffsseessttiimmaattee --ee 1100mm //vvaarr//ttmmpp",
        "/var/tmp will take about 4.2 megabytes",
        "with the external log using 2560 blocks or about 10.0 megabytes",
        "% xxffsseessttiimmaattee --vv --ee 1100mm //vvaarr//ttmmpp",
        "directory                     bsize   blocks    megabytes    logsize",
        "/var/tmp                       4096      792        4.0MB   10485760",
        "% xxffsseessttiimmaattee --vv //vvaarr//ttmmpp",
        "directory                     bsize   blocks    megabytes    logsize",
        "/var/tmp                       4096     3352       14.0MB   10485760",
        "% xxffsseessttiimmaattee //vvaarr//ttmmpp",
        "/var/tmp will take about 14.0 megabytes",
        "xfsestimate(8)"
    ],
    "see_also": []
}