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

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Oct 09 2002 - 14:02:25 EST


On Wed, 9 Oct 2002, Linus Torvalds wrote:

> i
> On Wed, 9 Oct 2002, Alexander Viro wrote:
> >
> > OK, call me dense, but what things are associated with partition aside of the
> > fact that it exists?
>
> Filesystems can be associated with one or more partitions. MD devices are
> associated with one or more partitions.
>

> Not disks. Partitions.

<groan>

Can you explain why "filesystem foo uses device bar" gives an object associated
with bar and "process baz has bar opened" doesn't?

"Associated with" is asymmetric in this case - just as for files and processes
holding them opened. We do have objects for process->file (/proc/<pid>/fd/*)
and we certainly don't have anything like that for other direction.

That's what I'm asking about - do we want to have objects on the _partition_
side of things that would require per-partition directory? Not on the
filesystem/swap/whatnot side...

-
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