On Oct 10, 2005, at 6:50 AM, Yogesh P wrote:
We actually want to read some data from one partition(media object) say
"Part1" and write the same data on another partition(media object) say
"Part2" within the write call of "Part1".
Say, "Part1" is associated with partition -> /Volume/Org and "Part2" is
associated with partition -> /Volume/New
You might think you want to do this, but in fact you do not.
You should never, ever, go writing blocks behind the back of a filesystem;
the filesystem and the VM/buffer cache above it 'own' the blocks backing a
mounted filesystem; as a device driver it is your obligation to write
*only* and *exactly* the blocks they give you to a device.
Now,before writing the new data on "Part1" at specific byteStart,I want
to read the original data from same byteStart for "Part1" and write the
read data on "Part2" within same write() routine of "Part1".
Please suggest some way to achieve this.