Early draft documenting ncdu's new binary export format:
https://dev.yorhel.nl/ncdu/binfmt
Feedback welcome, both on the format and the document.
Early draft documenting ncdu's new binary export format:
https://dev.yorhel.nl/ncdu/binfmt
Feedback welcome, both on the format and the document.
@lanodan Oh yeah, I forgot to document that ncdu doesn't support indefinite-length strings for the name field, they must be length-prefixed (That is such a CBOR misfeature).
The maximum length is actually a bit larger than that; the root item contains the full path of the scanned directory instead of just the name, and some filesystems apparently allow for 255 codepoints instead of bytes: https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits
@lanodan That sure would be funny, but I expect the Linux VFS layer to support longer names; most(?) syscall arguments are limited to PATH_MAX rather than NAME_MAX. Need to give it a try, though. :blobcatthinking:
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.