IOCTL-XFS-GOINGDOWN(2)
๐ฅ ioctl_xfs_goingdown โ shut down an XFS filesystem ๐ฅ
ok so bestie. this is a page from the System Calls Manual, and it's called ioctl_xfs_goingdown. yeah. it does exactly what it sounds like. sit down, we're gonna talk about it ๐ซถ
โจ NAME โจ
ioctl_xfs_goingdown โ shut down an XFS filesystem
๐ SYNOPSIS ๐
#include <xfs/xfs_fs.h>
int ioctl(int fd, XFS_IOC_GOINGDOWN, uint32_t flags);
๐ DESCRIPTION ๐
ok so this call shuts down a live XFS filesystem. like, a running one. no cap. ๐ซ
this is a software initiated hard shutdown and honestly? it should be avoided whenever possible. that's not me being dramatic, that's the manpage being dramatic, and it's right. ๐ฅ
the way that after this call completes, the filesystem will be totally unusable until the filesystem has been unmounted and remounted. totally. unusable. not "a little weird", not "needs a minute" โ unusable. periodt. ๐
so flags can be one of these:
XFS_FSOP_GOING_FLAGS_DEFAULTโ flush all dirty data and metadata to disk, flush pending transactions to the log, and then shut down. the responsible queen option ๐XFS_FSOP_GOING_FLAGS_LOGFLUSHโ flush all pending metadata transactions to the log and shut down, leaving all dirty data unwritten. so the metadata's fine but your data is justโฆ out there. vibing. unwritten. ๐XFS_FSOP_GOING_FLAGS_NOLOGFLUSHโ shut down immediately, without writing pending transactions or dirty data to disk. no warning, no goodbye, just chaos. main character exit fr fr ๐ง
๐ฎ RETURN VALUE ๐ฎ
if something goes wrong, -1 gets returned, and errno is set to tell you which error it was. classic.
๐ญ ERRORS ๐ญ
the error codes can be one of, but are not limited to, the following:
EFSBADCRCโ metadata checksum validation failed while performing the query. the checksum said ๐EFSCORRUPTEDโ metadata corruption was encountered while performing the query. something in there is broken broken.EIOโ an I/O error was encountered while performing the query. the disk said "not today".EPERMโ caller did not have permission to shut down the filesystem. bestie you don't have the keys to this house ๐ช
๐ CONFORMING TO ๐
this API is specific to XFS filesystem on the Linux kernel. it's an XFS thing, it's a Linux kernel thing, that's the whole story. iykyk โญ
๐ธ SEE ALSO ๐ธ
ok that's the whole page bestie, you're officially educated ๐
this was XFS, dated 2019-06-17, and the page itself is IOCTL-XFS-GOINGDOWN(2). love that for us. now go flush something responsibly, and please, for the love of everything, don't call this on a filesystem you actually like ๐โจ
๐ฆ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 ยท LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 ยท LGPL-2.1-or-later
- 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
- centos-stream 10: xfsprogs-devel 6.16.0-1.el10 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- centos-stream 9: xfsprogs-devel 6.4.0-9.el9 ยท GPL+ and LGPLv2+
- centos-stream 9: xfsprogs-devel 6.4.0-9.el9 ยท GPL+ and LGPLv2+
- debian bookworm: xfslibs-dev 6.1.0-1 ยท GPL-2.0-only
- debian trixie: xfslibs-dev 6.13.0-2+deb13u1 ยท GPL-2.0-only
- fedora 43: xfsprogs-devel 6.15.0-3.fc43 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 43: xfsprogs-devel 6.15.0-3.fc43 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-devel 6.18.0-2.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-devel 6.18.0-2.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-devel 7.1.1-1.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-devel 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 jammy: xfslibs-dev 5.13.0-1ubuntu2 ยท GPL-2.0-only
- ubuntu jammy: xfslibs-dev 5.13.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu noble: xfslibs-dev 6.6.0-1ubuntu2 ยท GPL-2.0-only
- ubuntu noble: xfslibs-dev 6.6.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu questing: xfslibs-dev 6.13.0-2ubuntu2
- ubuntu resolute: xfslibs-dev 6.18.0-3 ยท GPL-2.0-only
- ubuntu stonking: xfslibs-dev 6.19.0-1 ยท GPL-2.0-only
- ๐ the page's license: GPL-2.0+
- Copyright (c) 2019, Oracle. All rights reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms