Editing-in-place of a large file

Bob McElrath (mcelrath+linux@draal.physics.wisc.edu)
Sun, 2 Sep 2001 15:21:37 -0500


--TXIPBuAs4GDcsx9K
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I would like to take an extremely large file (multi-gigabyte) and edit
it by removing a chunk out of the middle. This is easy enough by
reading in the entire file and spitting it back out again, but it's
hardly efficent to read in an 8GB file just to remove a 100MB segment.

Is there another way to do this?

Is it possible to modify the inode structure of the underlying
filesystem to free blocks in the middle? (What to do with the half-full
blocks that are left?) Has anyone written a tool to do something like
this?

Is there a way to do this in a filesystem-independent manner?

Thanks,
-- Bob

Bob McElrath (rsmcelrath@students.wisc.edu)=20
Univ. of Wisconsin at Madison, Department of Physics

--TXIPBuAs4GDcsx9K
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjuSlNEACgkQjwioWRGe9K3DzgCgh+FCYf5rXWizoCsG7hY4ul8e
VTEAn33UdmzGxPsyvTsGAkjrUB54KAGp
=8Zsa
-----END PGP SIGNATURE-----

--TXIPBuAs4GDcsx9K--
-
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/