Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make suterusu work on recent kernels #1

Merged
merged 2 commits into from
Oct 24, 2013
Merged

Conversation

vnd
Copy link
Contributor

@vnd vnd commented Oct 23, 2013

f_vfsmnt was removed in 3.9 kernel (and was #defined as f_path.mnt in older kernels)
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=182be684784334598eee1d90274e7f7aa0063616

Starting from 3.11, iterate() is used instead of readdir(), see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2233f31aade393641f0eaed43a71110e629bb900
I'm not terribly happy with preprocessor stuff, but can't think of anything better. Also, for consistency I remove o_ prefix from filldir and readdir functions.
Tested on 3.11.0-12 2.6.38-8

@vnd
Copy link
Contributor Author

vnd commented Oct 23, 2013

The only remaining problem is port hiding -- it's broken due to proc_dir_entry changes in recent kernels. Opened an issue for this.

@mncoppola
Copy link
Owner

Thanks for the code and info, I'll look into the recent kernel changes and get things merged in soon.

mncoppola added a commit that referenced this pull request Oct 24, 2013
Handle update to VFS, 'readdir' is now 'iterate' on 3.11+ kernels torvalds/linux@2233f31
@mncoppola mncoppola merged commit 8cd5762 into mncoppola:master Oct 24, 2013
@norlover norlover mentioned this pull request Dec 30, 2014
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants