There is just no POSIX-API to do this, that's why there is no
simple way to do this.
Applications handling such large files usally implement a chunk
management, which can mark chunks as "unused" and skip them while
processing the file.
What's needed is a generalisation of sparse files and truncate().
They both handle similar problems.
For now I would seriously consider editing the ext2-structures
for this, because that's the only way you can do this right now.
Regards
Ingo Oeser
-- In der Wunschphantasie vieler Mann-Typen [ist die Frau] unsigned und operatorvertraeglich. --- Dietz Proepper in dasr - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/