Bug 13055 - Replace kern_path_parent in runtime/procfs.c
Summary: Replace kern_path_parent in runtime/procfs.c
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: runtime (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 19:22 UTC by Mark Wielaard
Modified: 2011-08-18 18:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2011-08-04 19:22:00 UTC
runtime/procfs.c uses kern_path_parent(), but that is no longer exported
since:

commit e3c3d9c838d48c0341c40ea45ee087e3d8c8ea39
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Mon Jun 27 17:14:56 2011 -0400

    unexport kern_path_parent()
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Maybe we can use one of the new (exported) functions introduced in:

commit dae6ad8f37529963ae7df52baaccf056b38f210e
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Sun Jun 26 11:50:15 2011 -0400

    new helpers: kern_path_create/user_path_create
    
    combination of kern_path_parent() and lookup_create().  Does *not*
    expose struct nameidata to caller.  Syscalls converted to that...
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Comment 1 David Smith 2011-08-18 18:35:11 UTC
Fixed in commit 7f2d56c.  Now 3.1 kernels use vfs_path_lookup().