public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* devpts multiple instances feedback
@ 2009-01-03 15:52 Christoph Hellwig
  2009-01-03 16:15 ` Christoph Hellwig
  2009-01-05 21:09 ` Sukadev Bhattiprolu
  0 siblings, 2 replies; 11+ messages in thread
From: Christoph Hellwig @ 2009-01-03 15:52 UTC (permalink / raw)
  To: Sukadev Bhattiprolu; +Cc: H. Peter Anvin, linux-kernel

I just took a look at the changes going into Linus current tree and
here's some feedback about the devpts multiple instances code:

 - the ptmx node is quite useful, I think it should always be around,
   even for normal devpts mounts.  That way distros can slowly migrate
   over to just using it by default and making the containers
   interaction easier.  It's also in many ways much nicer to have
   all the pty handling in one filesystems instead of sometimes
   using the character device.
 - the 000 mode is very weird, given how the /dev/ptmx operates
   it doesn't really make much sense to have it different than 0666
   unless you want to disable ptys.
 - why does pts_sb_from_inode have to check s_magic, I can't see
   it ever used on an inode not from the devpts filesystem
 - parsing the options twice is rather odd, I'd rather parse it into
   a once allocated structure then passed on through the private
   data void pointer into get_sb_nodev
 - creating the ptmx node should happen inside devfs_fill_super
 - once the ptmx mknod is gone I think new_pts_mount,
   is_new_instance_mount, init_pts_mount and maybe even get_init_pts_sb
   should be merged into devpts_get_sb to make the whole mounting
   scenario easier to follow instead of having to jump through half
   a dozen functions
 - I think CONFIG_DEVPTS_MULTIPLE_INSTANCES is not a good idea,
   it's not much code and could either be enabled unconditionally or
   based on the presence of a generic namespaces config option.
   (btw, this also applies to the other namespaces options, there's
   not much of a reason to have millions of options for them,
   one single option would be a lot easier for the user..)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-02-01 16:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 15:52 devpts multiple instances feedback Christoph Hellwig
2009-01-03 16:15 ` Christoph Hellwig
2009-01-26 21:53   ` Christoph Hellwig
2009-01-27  3:32     ` Sukadev Bhattiprolu
2009-01-05 21:09 ` Sukadev Bhattiprolu
2009-01-26 21:55   ` Christoph Hellwig
2009-01-26 21:58     ` Alan Cox
2009-02-01 16:29       ` Christoph Hellwig
2009-02-01 16:41         ` Alan Cox
2009-01-26 21:58     ` H. Peter Anvin
2009-02-01 16:31       ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox