xfs_logprint(8)
π xfs_logprint β the manual, but make it make sense π
okay bestie, so this is xfs_logprint(8), from the System Manager's Manual section of the manual pages. she's a system manager girlie and she's here to read your filesystem's diary. let's get into it β¨
β¨ NAME β¨
xfs_logprint β print the log of an XFS filesystem π«Ά
πΈ SYNOPSIS πΈ
xfs_logprint [ options ] device
π¦ DESCRIPTION π¦
so xfs_logprint prints the log of an XFS filesystem (peep xfs(5) if you wanna know more about XFS itself, iykyk).
the device argument is the pathname of the partition or logical volume that's holding your filesystem. and yes, the device can be a regular file if you're using the -f option β more on that below. the contents of the filesystem remain undisturbed, she's just looking, not touching, no cap. π
there are two major modes of operation in xfs_logprint, and honestly they're giving very different energies:
- Mode one is better for filesystem operation debugging. it's called the transactional view and you turn it on with the
-toption. this view prints only the portion of the log that pertains to recovery β in other words, it prints out complete transactions between the tail and the head. this view tries to display each transaction without regard to how they are split across log records. so she's stitching the whole story back together for you, periodt. - Mode two starts printing out information from the beginning of the log. some error blocks might print out at the beginning, because the last log record usually overlaps the oldest log record β messy, I know π. a message gets printed when the physical end of the log is reached, and also when the logical end of the log is reached. this one is a log record view, displayed one record at a time, and heads up: transactions that span log records may not be decoded fully. π
β¨ OPTIONS β¨
one bullet per option, bestie, we're not skipping a single one:
-bβ extract and print buffer information. only used in transactional view.-cβ attempt to continue when an error is detected. brave of her honestly.-Cfilename β copy the log from the filesystem to the file filename. the log itself is not printed. so she's just moving the tea elsewhere, no spillage π-dβ dump the log from front to end, printing where each log record is located on disk.-Dβ do not decode anything; just print data. raw and unfiltered, we love a minimal queen.-eβ exit when an error is found in the log. normallyxfs_logprinttries to continue and unwind from bad logs, but sometimes it just dies in bad ways π. using this option prevents core dumps. so like,-eis the emotionally regulated option.-fβ specifies that the filesystem image to be processed is stored in a regular file atdevice(see themkfs.xfs(8)-dfileoption). this might happen if an image copy of a filesystem has been made into an ordinary file withxfs_copy(8).-hβ printu32hex dump data in host-endian order. the default is to print without any endian decoding. little-endian besties rise π-llogdev β external log device. only for those filesystems which use an external log.-iβ extract and print inode information. only used in transactional view.-qβ extract and print quota information. only used in transactional view.-nβ do not try and interpret log data; just interpret log header information. header only, no lore.-oβ also print buffer data in hex. normally, buffer data is just decoded, so better information can be printed β but sometimes you want the raw hex anyway, and that's valid.-sstart-block β override any notion of where to start printing. she decides where the story begins β¨-tβ print out the transactional view. (this is the mode-one girlie from the description, come thru.)-vβ print "overwrite" data.-Vβ prints the version number and exits. short and sweet, main character exit π
π SEE ALSO π
π reminder bestie:xfs_logprintreads the log, it does not mess with your filesystem contents. but-Dis literally just raw data with zero decoding, and-eexists because bad logs can make this thing die in bad ways β so if you're poking at a cursed log,-eis your friend. fr fr.
and that's the whole page, no skips, no cuts π this was xfs_logprint(8), straight from the System Manager's Manual β she's been sitting in that footer forever and she's still iconic. go print some logs, bestie, you got this πΈπ¦π
π¦ where this page comes from
- alpine 3.24: xfsprogs-doc 7.0.1-r0 Β· LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 Β· GPL-2.0-only AND LGPL-2.1-only
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: xfsprogs 6.19.0
- nixpkgs unstable: xfsprogs 7.2.1
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- ubuntu stonking: xfsprogs 6.19.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms