Problem
How can I verify the structure of metadata in a barrel?
How can I fix it when it is corrupted?
Solution
Use the tool DiscIndexData:
$java org.egothor.db.disc.DiscIndexData /tmp/my_www/1/
The output (when everything is OK) should be similar to this:
Read-only mode.
Metadata: /tmp/my_www/1/
Size: 64
Everything is OK
If you want to fix a corrupted metadata structure, issue the following command:
$java org.egothor.db.disc.DiscIndexData -fix /tmp/my_www/1/
The output should look like this:
Read/Write mode!
Metadata: /tmp/my_www/1/
Size: 64
Everything is OK
Available in 1.2.5 and later
--
LeoGalambos - 17 Mar 2004