lkml.org 
[lkml]   [2016]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 01/16] devpts: Attempting to get it right
    "H. Peter Anvin" <hpa@zytor.com> writes:

    > It's really too bad we can't just use follow_link :-/

    Well follow_link is actually impossible to use as it doesn't exist
    anymore. The routine now is get_link. ;-)

    That said just to be certain of where everything stands I took a look to
    verify that we can't.

    I got about half way there.
    I tweaked init_special_inode, and d_flags_for_inode to set inode->i_link
    to "pts/ptmx", and to set DCACHE_SYMLINK_TYPE (aka made it so
    d_is_symlink returned true) on all instances of /dev/ptmx except
    /dev/pts/ptmx.

    Things sort of worked and things also acted very very weird.

    It is tempting because we would not need special vfs helpers, and would
    not require much code, but since it did not work cleanly I give that
    case a pass.

    I think old udev on distro's like centos5 and centos6 are actually
    a limit, as udev does something like calling stat on the device node
    after creation to ensure everything was created properly.

    Eric

    \
     
     \ /
      Last update: 2016-04-19 21:41    [W:4.316 / U:1.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site