Advanced file system manipulation
I would like to build a program to pack/unpack files without compression in a fast way using advanced file system manipulations. Here's how i want to do it:
Imagine we have some large files A, B, C (1GB each, for example). I want to pack them in a file called ABC.pack doing the following:
1- I will create a header file (ABC.header) for the packed file, containing information about packed files (A, B, C): size, name, etc.
2- Manipulating the file system, I will "merge" header and files (ABC.header, A, B, C) into one file (ABC.pack), but WITHOUT MOVING DATA, just modifying the file system "pointers" or wharever they are called.
So, from this situation (header is already generated):
After the process of packing/merging we will have this situation:
ABC.header A B C
| | | |
v v v v
[ header data ][ A data ][ B data ][ C data ]
We can go back to the initial situation because the ABC.pack file has information (in the header) about the files that were merged.
[ header data A data B data C data ]
Of course, data can be fragmented, initially or after merging. At least, after merging, data will be surely fragmented in the limits of each file data (header, A, B, C).
Do you know how can I program this merging?
Or there is already a program that can do this?
If I haven't explain it well please just ask me. I know it's somewhat confusing.
Last edited by ranma172; 10-18-2005 at 04:18 AM.
By java_van_dyk in forum Java
Last Post: 07-25-2005, 03:34 PM
By Brad Siemens in forum VB Classic
Last Post: 09-10-2001, 08:19 AM
By YC Choo in forum Database
Last Post: 09-03-2001, 01:42 PM
By Paul in forum Database
Last Post: 08-22-2000, 10:54 PM
By Anitha in forum authorevents.kurata
Last Post: 04-18-2000, 12:02 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL