I suppose it would be better if AFS handled HSM internally, but using AFS on top of a HSM capable filesystem should also work.
SGI just released the DMAPI implementation for their XFS filesystem, and Sistina has DMAPI on their todolist for GFS.
In addition, there are the openxdsm project, and mfs (a stackable filesystem that add HSM [not DMAPI] to a regular filesystem).
I believe Unitree have their own DMAPI capable filesystem ported to linux, and they have VFS modifications to allow DMAPI (like openxdsm) on any linux filesystem in the pipeline. Unfortenately neither are open source.
PHP is the answer to your problem. PHP is a programming language, so you'll find all the flexibility you want. Still, you don't need much code to get started!
SGI just released the DMAPI implementation for their XFS filesystem, and Sistina has DMAPI on their todolist for GFS.
In addition, there are the openxdsm project, and mfs (a stackable filesystem that add HSM [not DMAPI] to a regular filesystem). I believe Unitree have their own DMAPI capable filesystem ported to linux, and they have VFS modifications to allow DMAPI (like openxdsm) on any linux filesystem in the pipeline. Unfortenately neither are open source.
Check out the homepage for more information