{
    "content": [
        {
            "type": "text",
            "text": "# xfs_logprint(8) (man)\n\n**Summary:** xfslogprint - print the log of an XFS filesystem\n\n**Synopsis:** xfslogprint [ options ] device\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -b | — | — |  |\n| -c | — | — |  |\n| -C | — | — | Copy the log from the filesystem to the file filename. The log itself is not printed. |\n| -d | — | — |  |\n| -D | — | — |  |\n| -e | — | — | unwind from bad logs. However, sometimes it just dies in bad ways. Using this option prevents core dumps. |\n| -f | — | — | vice (see the mkfs.xfs(8) -d file option). This might happen if an image copy of a filesystem has been made into an ordi |\n| -l | — | — | External log device. Only for those filesystems which use an external log. |\n| -i | — | — |  |\n| -q | — | — |  |\n| -n | — | — |  |\n| -o | — | — | formation can be printed. |\n| -s | — | — | Override any notion of where to start printing. |\n| -t | — | — |  |\n| -v | — | — |  |\n| -V | — | — |  |\n\n## See Also\n\n- mkfs.xfs(8)\n- mount(8)\n- xfslogprint(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (17 lines)\n- **OPTIONS** (1 lines) — 16 subsections\n  - -b (1 lines)\n  - -c (1 lines)\n  - -C (2 lines)\n  - -d (1 lines)\n  - -D (1 lines)\n  - -e (3 lines)\n  - -f (3 lines)\n  - -l (2 lines)\n  - -i (1 lines)\n  - -q (1 lines)\n  - -n (1 lines)\n  - -o (2 lines)\n  - -s (2 lines)\n  - -t (1 lines)\n  - -v (1 lines)\n  - -V (1 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nxfslogprint - print the log of an XFS filesystem\n\n### SYNOPSIS\n\nxfslogprint [ options ] device\n\n### DESCRIPTION\n\nxfslogprint  prints  the  log of an XFS filesystem (see xfs(5)).  The device argument is the\npathname of the partition or logical volume containing the filesystem. The device  can  be  a\nregular  file  if  the  -f option is used. The contents of the filesystem remain undisturbed.\nThere are two major modes of operation in xfslogprint.\n\nOne mode is better for filesystem operation debugging.  It is called the  transactional  view\nand  is  enabled through the -t option. The transactional view prints only the portion of the\nlog that pertains to recovery. In other words, it prints out  complete  transactions  between\nthe tail and the head. This view tries to display each transaction without regard to how they\nare split across log records.\n\nThe second mode starts printing out information from the beginning of the  log.   Some  error\nblocks might print out in the beginning because the last log record usually overlaps the old‐\nest log record. A message is printed when the physical end of the log is reached and when the\nlogical  end  of  the  log  is  reached. A log record view is displayed one record at a time.\nTransactions that span log records may not be decoded fully.\n\n### OPTIONS\n\n#### -b\n\n#### -c\n\n#### -C\n\nCopy the log from the filesystem to the file filename.  The log itself is not printed.\n\n#### -d\n\n#### -D\n\n#### -e\n\nunwind from bad logs.  However, sometimes it just dies in bad ways.  Using this option\nprevents core dumps.\n\n#### -f\n\nvice  (see  the  mkfs.xfs(8) -d file option).  This might happen if an image copy of a\nfilesystem has been made into an ordinary file with xfscopy(8).\n\n#### -l\n\nExternal log device. Only for those filesystems which use an external log.\n\n#### -i\n\n#### -q\n\n#### -n\n\n#### -o\n\nformation can be printed.\n\n#### -s\n\nOverride any notion of where to start printing.\n\n#### -t\n\n#### -v\n\n#### -V\n\n### SEE ALSO\n\nmkfs.xfs(8), mount(8).\n\n\n\nxfslogprint(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "xfs_logprint",
        "section": "8",
        "mode": "man",
        "summary": "xfslogprint - print the log of an XFS filesystem",
        "synopsis": "xfslogprint [ options ] device",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-C",
                "long": null,
                "arg": null,
                "description": "Copy the log from the filesystem to the file filename. The log itself is not printed."
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-D",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-e",
                "long": null,
                "arg": null,
                "description": "unwind from bad logs. However, sometimes it just dies in bad ways. Using this option prevents core dumps."
            },
            {
                "flag": "-f",
                "long": null,
                "arg": null,
                "description": "vice (see the mkfs.xfs(8) -d file option). This might happen if an image copy of a filesystem has been made into an ordinary file with xfscopy(8)."
            },
            {
                "flag": "-l",
                "long": null,
                "arg": null,
                "description": "External log device. Only for those filesystems which use an external log."
            },
            {
                "flag": "-i",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-q",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-n",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-o",
                "long": null,
                "arg": null,
                "description": "formation can be printed."
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": "Override any notion of where to start printing."
            },
            {
                "flag": "-t",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-V",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "mkfs.xfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/mkfs.xfs/8/json"
            },
            {
                "name": "mount",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/mount/8/json"
            },
            {
                "name": "xfslogprint",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/xfslogprint/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-b",
                        "lines": 1,
                        "flag": "-b"
                    },
                    {
                        "name": "-c",
                        "lines": 1,
                        "flag": "-c"
                    },
                    {
                        "name": "-C",
                        "lines": 2,
                        "flag": "-C"
                    },
                    {
                        "name": "-d",
                        "lines": 1,
                        "flag": "-d"
                    },
                    {
                        "name": "-D",
                        "lines": 1,
                        "flag": "-D"
                    },
                    {
                        "name": "-e",
                        "lines": 3,
                        "flag": "-e"
                    },
                    {
                        "name": "-f",
                        "lines": 3,
                        "flag": "-f"
                    },
                    {
                        "name": "-l",
                        "lines": 2,
                        "flag": "-l"
                    },
                    {
                        "name": "-i",
                        "lines": 1,
                        "flag": "-i"
                    },
                    {
                        "name": "-q",
                        "lines": 1,
                        "flag": "-q"
                    },
                    {
                        "name": "-n",
                        "lines": 1,
                        "flag": "-n"
                    },
                    {
                        "name": "-o",
                        "lines": 2,
                        "flag": "-o"
                    },
                    {
                        "name": "-s",
                        "lines": 2,
                        "flag": "-s"
                    },
                    {
                        "name": "-t",
                        "lines": 1,
                        "flag": "-t"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-V",
                        "lines": 1,
                        "flag": "-V"
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}