I can't seem to find anything like it, neither as a Fuse fs. Is there really no file system, that just evicts the oldest entries once it's full? I mean, it could be a simple queue.

This would have been the ideal tool for cache; no bothering with size limits and background daemons.

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 day ago (1 child)
  • [–] [S] 1 point 1 day ago (1 child)

    Not at all. Is there a misunderstanding?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 day ago (1 child)

    RRDtool refers to Round Robin Database tool. Round robin is a technique that works with a fixed amount of data, and a pointer to the current element. Think of a circle with some dots plotted on the edge. These dots are the places where data can be stored. Draw an arrow from the center of the circle to one of the dots; this is the pointer. When the current data is read or written, the pointer moves to the next element. As we are on a circle there is neither a beginning nor an end, you can go on and on and on. After a while, all the available places will be used and the process automatically reuses old locations. This way, the dataset will not grow in size and therefore requires no maintenance. RRDtool works with Round Robin Databases (RRDs). It stores and retrieves data from them.

    I guess I was thinking about it too abstractly.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 1 point 1 day ago (1 child)
  • [–] 2 points 1 day ago (1 child)

    What are you trying to build/do?

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 1 point 1 day ago* (2 children)

    Uncomplicated cache/trash management

    • try 1) I could have a cronjob to parse the cache directory for old files or if it gets full... - scratch that, it would get to a rather complex script with multiple rules.
    • try 2) a systemd service, relying on dbus calls, like the big distros do? No, that breaks even more outside of their ecosystem and i don't like bloaty DE.
    • try 3) or i could just have a partition in size of choice that "forgets" old files once full?

    But sadly, doesn't seem to exist. Maybe i will have to learn how to create a fs? It's only a stack, would also be fast...

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 day ago

    Sounds like you want to automate Trash folder management. Why would number 1 require complex rules if number 3 can work with only the rule of delete the oldest file? Wouldn't the same rule work in both cases?

  • source
  • parent