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:
>
> > 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
>
> What's wrong with this?
>
> fd = open("/dev/hda7", your_flags_here);
-- Bruno Diniz de Paula <diniz@cs.rutgers.edu> Rutgers University
- 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/
This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:48 EST