From: Nick Garnett <nickg@ecoscentric.com>
To: Frank Pagliughi <fpagliughi@mindspring.com>
Cc: ecos-devel@ecos.sourceware.org
Subject: Re: Partition support for FAT file system
Date: Wed, 18 Jun 2008 19:26:00 -0000 [thread overview]
Message-ID: <m3myli4q79.fsf@xl5.calivar.com> (raw)
In-Reply-To: <48593F4C.7000808@mindspring.com>
Frank Pagliughi <fpagliughi@mindspring.com> writes:
> So then it's the IDE driver that should scan the partition table on
> the physical disk and export separate mount points for each? Would
> that be the proper way to go?
No, the generic disk layer already does all of this. It reads the MBR
from the disk, looks for a partition table and sets up its data
structures accordingly.
Take a look in io/disk/current/src/disk.c, specifically the read_mbr()
and read_partition() functions. And the code in disk_lookup() which
selects the right partition.
In the same way that it shouldn't be done at too high a level,
partitioning shouldn't be done at too low a level either. Partitions
can exist on a wide variety of media, not just IDE disks.
--
Nick Garnett eCos Kernel Architect
eCosCentric Limited http://www.eCosCentric.com The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No: 4422071
next prev parent reply other threads:[~2008-06-18 19:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-18 9:36 Strange buildsystem behaviour Lars Poeschel
2008-06-18 9:53 ` Andrew Lunn
2008-06-18 10:07 ` Lars Poeschel
2008-06-18 10:23 ` Andrew Lunn
2008-06-18 10:58 ` Lars Poeschel
2008-06-18 16:26 ` Partition support for FAT file system Frank Pagliughi
2008-06-18 16:44 ` Nick Garnett
2008-06-18 17:01 ` Frank Pagliughi
2008-06-18 19:26 ` Nick Garnett [this message]
2008-06-20 13:56 ` Frank Pagliughi
2008-06-18 19:28 ` Frank Pagliughi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3myli4q79.fsf@xl5.calivar.com \
--to=nickg@ecoscentric.com \
--cc=ecos-devel@ecos.sourceware.org \
--cc=fpagliughi@mindspring.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).