Re: Disk Image Manipulation Tool
Posted: Thu Jun 11, 2009 10:09 am
*brainstorm*
I'm thinking of splitting the project into two parts: libquasifs, and imagetools. libquasifs is the 'vfs' wrapper around the libfs libraries provided by the linux utilities. Imagetools is obvious. It should also have the ability to select a set of operations for given filesystem and auto-detection of a partition's filesystem would be great. It would mean transparent access to each image and simplicity of configuration.
How do you think access to partitions should be accomplished? Hypothetically assuming that someone were to use this on an actual hard disk image, there are going to be multiple partitions, each with possibly different filesystems contained within, how would one structure the operations to/from the host disk?
1. $ imagetools [options] command local-file ./disk-image:pseudo-path-of-partition-number/absolute/path/into/disk
---- $ imagetools cp localfile.bin hard-disk.img:1:/tmp/localfile.bin
2. A interactive REPL prompt like FTP ?
---- > select image hard-disk.img
---- > select partition 1
---- > copy file.bin /tmp/file.bin
---- > commit
e2tools was fairly vague about this.
I'm thinking of splitting the project into two parts: libquasifs, and imagetools. libquasifs is the 'vfs' wrapper around the libfs libraries provided by the linux utilities. Imagetools is obvious. It should also have the ability to select a set of operations for given filesystem and auto-detection of a partition's filesystem would be great. It would mean transparent access to each image and simplicity of configuration.
How do you think access to partitions should be accomplished? Hypothetically assuming that someone were to use this on an actual hard disk image, there are going to be multiple partitions, each with possibly different filesystems contained within, how would one structure the operations to/from the host disk?
1. $ imagetools [options] command local-file ./disk-image:pseudo-path-of-partition-number/absolute/path/into/disk
---- $ imagetools cp localfile.bin hard-disk.img:1:/tmp/localfile.bin
2. A interactive REPL prompt like FTP ?
---- > select image hard-disk.img
---- > select partition 1
---- > copy file.bin /tmp/file.bin
---- > commit
e2tools was fairly vague about this.