tags(7)
π·οΈ NAME
tags β tagged files used for clustering extensions. This is tags(7), bestie, and it's literally the glow-up guide for tagged files β¨.
π DESCRIPTION π
Okay so tagged files are a thing used by ClusterNFS and unfs3 to support NFS exporting directories like /etc and /var to a cluster of client machines. The whole problem? Different files need to be served to different clients. Tagged files are how you specify which file should be served to which client(s). No cap.
Tags get appended to the end of a filename, and they're separated from the rest of the name by beginning and ending with $$. For each file, there can be multiple tagged variants. The normal file, without a tag, is only served to clients by default when no tagged file matching the client is found. The following tags exist:
file$$$$β If a client tries to access this file, it gets redirected to the normal file instead, no matter what other tagged files exist. Mainly useful inside symlinks that need to point to a normal file even though other access to the normal file should be redirected. In this special case, the tagged filefile$$$$doesn't even need to exist (the symlink will then seem dangling on the server).file$$IP=a.b.c.d$$β If a client with an IP address ofa.b.c.dtries to access the normal file, it gets redirected to this file instead.file$$IP=a.b.c.d_n$$β If a client with an IP address in the networka.b.c.d/ntries to access the normal file, it gets redirected to this file instead. Note that unfs3 only supports8,16, and24as values forn.file$$HOST=name$$β If a client with the hostnamenametries to access the normal file, it gets redirected to this file instead.file$$HOST=name*$$β If a client whose hostname begins with the stringnametries to access the normal file, it gets redirected to this file instead.file$$CLIENT$$β If any client tries to access the normal file, it gets redirected to this file instead.file$$ALWAYS=IP$$β If any client tries to access or create the normal file, it gets redirected tofile$$IP=a.b.c.d$$instead, wherea.b.c.dis the IP address of the client. It does not matter whether the target tagged file exists or not.file$$ALWAYS=CLIENT$$β If any client tries to access or create the normal file, it gets redirected tofile$$CLIENT$$instead. It does not matter whether that file exists or not.$$ALWAYS=CLIENT$$β Like above, but effective for all files in the directory where it is found.$$ALWAYS=IP$$β Like above, but effective for all files in the directory where it is found.
β οΈ Warning bestie: the ALWAYS tag can lead to file not found errors on clients if the tagged files it redirects to does not exist on the server. For example, ls(1) can suffer from this problem. Furthermore, this tag is a unfs3 extension and does not exist in ClusterNFS. When this tag exists, it prevents all access to the normal file by any client.
file$$CREATE=IP$$β If any client tries to create the normal file,file$$IP=a.b.c.d$$will be created instead, wherea.b.c.dis the IP address of the client.file$$CREATE=CLIENT$$β If any client tries to create the normal file,file$$CLIENT$$will be created instead.$$CREATE=IP$$β Like above, but effective for all files in the directory where it is found.$$CREATE=CLIENT$$β Like above, but effective for all files in the directory where it is found.
Tags work for all kinds of named filesystem objects. If multiple tagged files are found for a normal file, they are considered in the order they are given above, starting at the top. Processing stops once a match is found. In ClusterNFS, but not in unfs3, only files accessible and readable by a client are considered matches.
π AUTHOR π
Pascal Schmidt.
π¦ SEE ALSO π¦
That's the whole vibe: from the Miscellaneous Information Manual, dated 04 Jan 2004, this was tags(7). Bye bestie π
π¦ where this page comes from
- alpine 3.22: unfs3-doc 0.10.0-r2 Β· BSD-3-Clause
- alpine 3.23: unfs3-doc 0.10.0-r2 Β· BSD-3-Clause
- alpine 3.24: unfs3-doc 0.10.0-r2 Β· BSD-3-Clause
- nixos 26.05: unfs3 0.11.0
- nixpkgs unstable: unfs3 0.11.0
- (C) 2004, Pascal Schmidt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms