3 ms·
Does this queue have a way to check the age (timestamp, txg id, whatever) of the oldest thing in it?
by tbrownaw 4y ago
Does this queue have a way to check the age (timestamp, txg id, whatever) of the oldest thing in it?
- toast0 4y agoThere's zfs wait, which can wait on the delete queue. Otoh, files that are deleted and open will be on the delete queue until they're closed, so that queue doesn't have any guarantee of progress while the system remains running. A process to delete less important files to maintain free space that waited on the delete queue to drain before reassessing the situation would need something more sophisticated.
- rincebrain 4y agoI'm not aware of one, but don't think it would be terribly hard to implement. I don't know of anyone who has, probably because it's not really a thing that's broken for anyone in a way where that data point would be interesting...that I know of. Could be wrong. Maybe I'll remember and go try it in a day or two, when I'm not at an event[1]... [1] - https://openzfs.org/wiki/OpenZFS_Developer_Summit_2022 https://openzfs.org/wiki/OpenZFS_Developer_Summit_2022