[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-12 Thread Kyle Moffett
On Mon, Aug 4, 2008 at 10:07 PM, H. Peter Anvin <[EMAIL PROTECTED]> wrote: > You're right, I think we can do this and still retain most of the > advantages, at least for a transition period. > > The idea would be that you'd have a mount option, that if you do not specify > it, you get a bind to the

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-12 Thread Kyle Moffett
On Tue, Aug 5, 2008 at 2:15 AM, Eric W. Biederman <[EMAIL PROTECTED]> wrote: > >> There definitely needs to be a mount option (and possibly a config >> option to forcibly enable the mount option). I personally have 5 or 6 >> different custom scripts that depend on being able to unmount and >> remo

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-06 Thread H. Peter Anvin
Kyle Moffett wrote: > On Tue, Aug 5, 2008 at 2:15 AM, Eric W. Biederman <[EMAIL PROTECTED]> wrote: >>> There definitely needs to be a mount option (and possibly a config >>> option to forcibly enable the mount option). I personally have 5 or 6 >>> different custom scripts that depend on being able

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-04 Thread Eric W. Biederman
> There definitely needs to be a mount option (and possibly a config > option to forcibly enable the mount option). I personally have 5 or 6 > different custom scripts that depend on being able to unmount and > remount devpts without losing access to the TTYs therein. Eventually > I will need to

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-04 Thread H. Peter Anvin
[EMAIL PROTECTED] wrote: > > Ok. But was wondering if we can pass the ptmx symlink burden to the > 'container-startup sripts' since they are the ones that need the second > or subsequent mount of devpts. > > So, initially and for systems that don't need multiple mounts of devpts, > existing behav

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-04 Thread H. Peter Anvin
[EMAIL PROTECTED] wrote: > > Appreciate comments on overall approach of my mapping from the inode > to sb->s_fs_info to allocated_ptys and the hacky use of get_sb_nodev(), > and also on the tweak to init_dev() (patch 6). > First of all, thanks for taking this on :) It's always delightful to sp

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-04 Thread sukadev
H. Peter Anvin [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: >> If devpts is mounted more than once, then '/dev/ptmx' must be a symlink >> to '/dev/pts/ptmx' and in each new devpts mount we must create the >> device node '/dev/pts/ptmx' [c, 5;2] by hand. > > This should be auto-created. That

[Devel] Re: [RFC][PATCH 0/6] Enable multiple mounts of devpts

2008-08-04 Thread H. Peter Anvin
[EMAIL PROTECTED] wrote: > > If devpts is mounted more than once, then '/dev/ptmx' must be a symlink > to '/dev/pts/ptmx' and in each new devpts mount we must create the > device node '/dev/pts/ptmx' [c, 5;2] by hand. > This should be auto-created. That also eliminates any need to support the