VENTI(1)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

πŸ’– VENTI(1) β€” read, write, copy: simple Venti clients πŸ’–

okay so welcome to the VENTI(1) page, bestie β€” General Commands Manual, but make it group chat. This is the manual for read, write, and copy, the simple Venti clients. no cap, they’re little utilities with big β€œI know what I’m doing” energy. πŸ’…


🌸 NAME 🌸

read, write, copy - simple Venti clients. that’s the whole name section, short and iconic. πŸŽ€

✨ SYNOPSIS ✨

venti/read [ -h host ] [ -t type ] score
venti/write [ -z ] [ -h host ] [ -t type ]
venti/copy [ -fimrVv ] [ -t type ] srchost dsthost score

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first thing: Venti is a SHA1-addressed block storage server. See venti(7) for a full introduction. iykyk, but the vibes are block storage with SHA1 scores.

πŸ’– read β€” the β€œjust give me the block” bestie

read reads a block with the given score and numeric type from the server host and prints the block to standard output.

  • if you omit -h, read consults the environment variable $venti for the name of the Venti server. yes, it’s giving β€œcheck the group chat for the server address.” 🫢
  • if you omit -t, read will try each type, one at a time, until it finds one that works. iconic persistence.
  • it prints the corresponding read -t command to standard error to indicate the type of the block. so it’s literally telling you what worked. πŸ’…

🌸 write β€” the β€œhere’s some data, pls score it” bestie

write writes at most 56 kilobytes of data from standard input to the server host and prints the resulting score to standard output.

  • the synopsis includes -h host, and write sends to the server host β€” that’s the host situation. 🫢
  • if you omit -t, write uses type 0, denoting a data block.
  • if -z is given, write zero truncates the block before writing it to the server. zero truncation, zero drama. ✨

🧚 copy β€” the tree-copying main character

copy expects score to be the score of a VtRoot block. it copies the entire tree of blocks reachable from the root block from the server srchost to the server dsthost. literally copying the whole tree, root and all. 🌈

the synopsis also lists [ -t type ] for copy; the original description doesn’t add any extra lore about it. keeping it real. πŸ¦‹

Venti’s blocks are arranged in a directed acyclic graph (see venti(6)); there may be multiple paths from a root score to an interior block (for example, if the same file contents are stored under multiple names in an archive). so yes, the same block can be reachable multiple ways. the DAG is DAG-ing. πŸ¦‹

copy runs more efficiently if it does not copy blocks (and all their children) multiple times. here’s the option tea:

  • -f β€” causes copy to assume that if a block already exists on the destination Venti server, all its children also exist and need not be considered. > this is only useful if the destination Venti server is known not to have lost any blocks due to disk corruption or other failures. so like, only trust it if you actually trust the destination. no cap.
  • -m β€” causes copy to maintain an in-memory list of blocks it has copied and avoid considering the same block multiple times. > this is only useful if enough memory is available to hold the block list, which typically requires about 1% of the total number of bytes being copied. memory queen behavior, but only if you have the RAM. 😭

The -i and -r options control copy’s reaction to errors reading from srchost. copy always prints information to standard error about each read error. By default, copy exits after printing the first error.

  • -i β€” if given, read errors are ignored. > this is dangerous behavior because it breaks the assumption made by fast' mode. bestie, do not ignore read errors casually. πŸ’€
  • -r β€” if given, copy replaces pointers to unreadable blocks with pointers to the zero block. it writes the new root score to standard output. so it patches the tree with zero-block pointers and gives you the new score. 🩹

The -v option prints scores as it copies them, total writes, and other debugging information. The -V option prints debugging information about the Venti protocol messages send/received. yes, β€œsend/received” exactly like that in the original β€” we keep the facts, not grammar lessons. πŸ™ˆ

πŸ“¦ SOURCE πŸ“¦

/src/cmd/venti

πŸ‘€ SEE ALSO πŸ‘€

vac(1), venti(3), vacfs(4), venti(7), vbackup(8), venti(8), venti-fmt(8)

πŸ’€ BUGS πŸ’€

There should be programs to read and write venti files and directories. that’s the bug note, and honestly it’s giving β€œmissing feature, please advise.” 😭


kay bye bestie β€” this was VENTI(1) from the General Commands Manual, source at /src/cmd/venti. the original footer gives no date, so I’m not inventing one. stay slay, copy those blocks responsibly. πŸ’–βœ¨πŸŽ€