--=_courier-13765-1045158718-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
But what if "/dev/hda7" already has an ext2 fs set up. How am I supposed
to know which phisical blocks in the disk correspond to each of my files
in the ext2 mapping, that is, "/var/somefile" or "/usr/local/otherfile"?
Thanks,
Bruno.
On Thu, 2003-02-13 at 12:37, Valdis.Kletnieks@vt.edu wrote:
> On Thu, 13 Feb 2003 12:29:12 EST, Bruno Diniz de Paula <diniz@cs.rutgers.=
edu> said:
>=20
> > the kernel. One option would be create a raw device on top of my disk
> > partition, but in this case I would have to learn how to map a logical
> > file name (/var/tmp/myfile) to a set of block disks. Is there any other
>=20
> What's wrong with this?
>=20
> fd =3D open("/dev/hda7", your_flags_here);
--=20
Bruno Diniz de Paula <diniz@cs.rutgers.edu>
Rutgers University
--=_courier-13765-1045158718-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA+S9sOZGORSF4wrt8RAtD1AJ9tZU0juj/l1Q59PLCmFJ6oPQBkfwCcCtIu
DYNxJ/3B+8pl/d2D2lffEz8=
=Akys
-----END PGP SIGNATURE-----
--=_courier-13765-1045158718-0001-2--