Re: The Linux FAT issue on SD Cards.. maintainer support please

From: Lennart Sorensen
Date: Wed Aug 24 2005 - 08:14:12 EST


On Wed, Aug 24, 2005 at 02:03:16PM +0530, Mukund JB. wrote:
> Dear Lenneart,
>
> One good news
> I have implemented the partition support in the driver.
> I am able to mount the partition of the individual device.
> I partition them using the fdisk and mounted them.
> The architecture this some thing like this
> The whole device is represented by tfa0
> And rest of the partitions by tfa0p1, tfa0p2 and so on...
> If there is a device in second socket, the whole device is represented
> by tfa1 and rest of the partitions by tfa1p1, tfa1p2 and so on... I am
> following the above conventions. Is the is what in general all Linux
> devices follow.

Most common for disk devices is XXYZ where XX is some name for the
driver (hd for ide, sd for scsi, other things for other drive types), Y
is a letter (a for first, b for second, c for third, etc) and Z is the
partition number. So in your case you could have:

tfaa for first slot
tfaa1 for first partition on first slot.
tfab for second slot
tfab4 for 4th partition on second slot.

Or call it tf and use tfa1 tfb4 etc.

> I have four sockets on which I have to support individual device with
> partitions on them. Is there a better conventional way to represent all
> the four devices? My driver also supports 4 such controllers. To support
> first socket device on the second controller I am using tfb0, tfb0p1,
> tfb0p2...

Well at least ide and scsi don't care which controller, they still just
name them in order. You could just use tfa up to tfp for the devices.
That is what I would do unless the seperate controllers really make more
sense to users (counting to slot 16 might be a bit much using letters
for some users).

Maybe tf1a2 for controller 1 slot a partition 2 would be nicer to the
user. Some raid cards do use /dev/raidname/c1d2p3 for card 1 device 2
partition 3. Maybe you prefer that arangement.

> I have left with handling lot of generalization in the code.

Len Sorensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/