tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (Semi-random) thoughts on device tree structure and devfs



On Thu, 11 Mar 2010, Adam Hoka wrote:

> On Thu, 11 Mar 2010 18:18:54 +0100
> Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:
> 
> > On Thu, Mar 11, 2010 at 06:12:40PM +0100, Adam Hoka wrote:
> > > Im wondering if it would be too hack-ish to make devfs file
> > > backed (at least optionally, in case of early boot or read
> > > only rootfs).
> > > 
> > > For example: mount -t devfs /etc/devfs.db /dev
> > 
> > How is that different from mounting devfs and calling mtree next?
> 
> Atomicity (or at least on-line updates to the database).
> 
> This could also enable you to do
>   mount -t devfs /etc/devfs-bindchroot.db /var/chroot/bind/dev
> for example. So you can have different permissions at a different location.

I don't think a static database will cut it.  What happens when someone 
attaches a new USB stick and devfs generates a bunch of new nodes?  What 
ownership and permissions should they get?

Eduardo


Home | Main Index | Thread Index | Old Index