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 file file$$$$ 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 of a.b.c.d tries 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 network a.b.c.d/n tries to access the normal file, it gets redirected to this file instead. Note that unfs3 only supports 8, 16, and 24 as values for n.
  • file$$HOST=name$$ β€” If a client with the hostname name tries to access the normal file, it gets redirected to this file instead.
  • file$$HOST=name*$$ β€” If a client whose hostname begins with the string name tries 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 to file$$IP=a.b.c.d$$ instead, where a.b.c.d is 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 to file$$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, where a.b.c.d is 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 πŸ¦‹

unfsd(8)

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