FS#34520 - [linux] 3.8.x - 3.9.x fanotify: fix support of large files
Attached to Project:
Arch Linux
Opened by Chris G (epitron) - Saturday, 30 March 2013, 03:06 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 07 May 2013, 06:34 GMT
Opened by Chris G (epitron) - Saturday, 30 March 2013, 03:06 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 07 May 2013, 06:34 GMT
|
Details
Description:
Linux's new `fanotify` filesystem event notification subsystem lets you monitor all filesystem activity. It's used by the `fatrace` package, and works quite well. It has a slight bug, however, where it can't handle filesystem events involving files that are > 2gb in size. This kernel patch fixes it the bug: https://patchwork.kernel.org/patch/2142341/ (I've tested in on v3.8.4, and it works well.) It's a very tiny patch that basically just adds O_LARGEFILE to an open command, so stability isn't an issue. |
This task depends upon
I was trying to imagine why they didn't merge this in immediately (the patch is from Feb 14, 2013).
Would it cause problems if you tried to open a file on a filesystem that didn't support large files with O_LARGEFILE?
This was never merged. Regardless of how trivial the patch may seem, it needs to be merged upstream.
I'm not qualified to review the patch. Someone who is recently commented that the "fix" seems wrong (see your own patchwork link).
See
http://www.xypron.de/projects/fanotify-manpages/man2/fanotify_init.2.html