sawyl: (Default)
[personal profile] sawyl
I'm feeling appropriately smug today: after a chance conversation with one of my cronies about the problems of spotting migrated files, I've come up with a patch for GNU ls that tags purged files with a suitably lurid colour.

The code uses a neat heuristic to spot purged files, which relies on the fact that when DiskXtender clears a file, it changes the block count. Thus, if the actual block count of a file is much lower than the expected block count, based on the size of the file and if the block count also matches the DX stub size (the portion of the file that gets left on disc to deal with commands like file), then it is a pretty safe assumption that the file has been purged. Quick and dirty it may be but, unlike other more correct methods, it has the advantage that it works over NFS.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 05:42 pm
Powered by Dreamwidth Studios