Annotation of wikisrc/projects/project/ptyfs_multiple_mounts.mdwn, revision 1.1
1.1 ! jmmv 1: [[!template id=project
! 3: title="Enhance ptyfs to handle multiple instances"
! 5: contact="""
! 6: [tech-kern](mailto:tech-kern@NetBSD.org)
! 7: """
! 9: mentors="""
! 10: [Christos Zoulas](mailto:christos@NetBSD.org)
! 11: """
! 13: duration="3 months"
! 15: description="""
! 16: Chrooted enviroments that need ptys cannot use ptyfs at this time because only one instance of ptyfs is supported. The task is to enhance ptyfs so that it can be mounted multiple times. The problems that need to be solved are:
! 18: * The ptyfs code needs to be modified so that the correct path is returned depending on the mount point in the TIOCPTMGET ioctl. There was code there to do this, but it was removed because it was not working properly.
! 19: * Since there can be only one instance of major/minor pty in the system, each mount point should only display the ptys that were created for that mountpoint and not others.
! 20: * Since ptyfs replaces the handlers for the traditional BSD style ptys when it is mounted and puts them back once it is unmounted, this handler hijacking will not work with multiple mounts. Perhaps a solution is to do it only for the first mount?
! 22: This project is implemented all in the kernel and has no documentation requirements.
! 24: For extra credit you can investigate if providing continuous numbers (without gaps) is feasible without too much recoding, and implement it.
! 25: """
! 26: ]]
! 28: [[!tag gsoc]]
! 29: [[!tag easy]]
! 30: [[!tag kernel]]
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb