Re: [bk/patch] driver model update: device_unregister()

From: Patrick Mochel (mochel@osdl.org)
Date: Wed Oct 09 2002 - 13:02:18 EST


On Wed, 9 Oct 2002, Linus Torvalds wrote:

>
> On Wed, 9 Oct 2002, Alexander Viro wrote:
> >
> > Sorry, no. Which partition is the backing store for this filesystem is
> > question to some filesystem drivers. Not even every fs driver that
> > happens to use block devices - some of them use more than one (e.g
> > for journal).
> >
> > IOW, it's not a partition property.
>
> I didn't say it was a partition. I said it was a _filesystem_ property.
> And yes, it can be a list of multiple partitions - the same way LVM is a
> list of _multiple_ partitions.
>
> The point being that a partition is a real entity, and should have a node
> of its own - so that you can point to it (and "node" may of course be
> "subdirectory" if you want to have multiple things associated with it).

It doesn't have to be a struct device, either.

What describes partitions, struct hd_struct? By adding a struct
driver_dir_entry (yes, crappy name; will change) and a bit of glue logic,
we can create driverfs directories for them, and start adding attributes
to the partitions themselves.

Volume managers can have their own top-level directories, and one
directory for each volume, with symlinks to the partition directories
under the disk node directories that make up the volume.

The code shouldn't be that bad, and I can whip something this afternoon,
if interested..

        -pat

-
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 : Tue Oct 15 2002 - 22:00:32 EST