KAFS-CHECK-CONFIG(1)
π KAFS-CHECK-CONFIG(1) β AFS Config Checker
okay bestie, so this is kafs-check-config from the AFS Config Checker corner of the manual universe, and it is exactly what it sounds like: the little tool that checks your AFS config before anything goes feral. let's get into it π
β¨ NAME β¨
kafs-check-config β the AFS configuration check tool, your lil config bodyguard π«Ά
πΈ SYNOPSIS πΈ
kafs-check-config [OPTION]... [<cellname>]*
Where options are:
[-46PDvv] [-c <conffile>]* [-N <restriction>]
so yeah, you run it, you throw some options at it, you optionally throw some <cellname>s at it, and it does its thing. iconic behaviour fr fr.
π¦ DESCRIPTION π¦
okay so what does this program actually do. this tool checks the configuration for the in-kernel AFS filesystem, aka kAFS. and why do we care, you ask? because this is the config that gets used when systemd mounts the filesystem β it's what loads up the cell database and creates the cell automounts inside the /afs directory. so like, if this config is messy, everything downstream is messy. no cap. π
the config is also used by the kernel name resolver upcall, which uses it to hand out static configuration for some cells and to specify overrides and limits on DNS lookups. multitasking queen honestly π
and here's a cute bonus: if you pass a list of <cellname> arguments, the listed cells get dumped β and that dump includes the sources of the Volume Location records and the address records. receipts included, periodt π
the available options are:
π ARGUMENTS π
-4β only show IPv4 addresses in the dump. v4 girlies only π-6β only show IPv6 addresses in the dump. v6 supremacy, we love to see it β¨-Pβ dump the parse tree of the configuration file(s). like, the whole family tree of your config, exposed π³-Dβ dump the cell database extracted from the configuration. the cell database, in the flesh π-vβ increase the verbosity of the output. and yes bestie, you may specify this multiple times β stack them like bracelets π-c <conffile>β specify a configuration file to read instead of the system default. this one may be specified multiple times too, and the configuration files are read and applied in order β so order matters, don't play with it π-N <restriction>β apply a restriction to the lookup performed for the listed cells (if any are β yes, only if there are any, we're being precise here πΈ). the restrictions include:-N vl-srvβ don't use SRV records to find Volume Location servers.-N vl-afsdbβ don't use AFSDB records to find Volume Location servers.-N vl-allβ don't use SRV or AFSDB records to find Volume Location servers. both, gone, blocked π«-N vl-hostβ don't look the cell name up as a hostname to find a Volume Location server.-N vl-dnsβ don't do any lookups to find Volume Location servers. use only the static configuration. offline mode, main character energy β¨
β EXIT STATUS β
0β if check okay and any dumping succeeded. we love a clean run π₯³1β if an error occurs during processing. something went sideways bestie π2β if a command line error occurs. you typed something funky, it's giving typo π
π SEE ALSO π
go read those too, they're part of the lore, iykyk π
lowkey reminder: the restrictions above are all about not doing things β no SRV, no AFSDB, no hostname lookup, no DNS at all. so if your lookups are acting weird, one of these is probably your girl. π
and that's the whole page, bestie β this one shipped as part of Linux and the page itself is dated 16 Apr 2019. yes, it's an older icon, but it ate and it's still serving π«Άβ¨ bye mwah π
π¦ where this page comes from
- ubuntu jammy: kafs-client 0.5-2 Β· GPL-2.0-or-later
- Copyright (C) 2019 Red Hat, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms