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.

DiskXtender

Date: 2010-01-12 09:17 pm (UTC)
From: (Anonymous)
Hi, I was wondering what your experience was in getting DiskXtender to give up files directly from media without going throught the database or the DiskXtender software. If you have been able to do this, please contact me at b_mars50@hotmail.com.
Thx

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

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 03:18 am
Powered by Dreamwidth Studios