linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 85381] New: ext4 & tmpfs: Splicing to regular files doesn't trigger inotify
@ 2014-10-01 16:56 bugzilla-daemon
  2014-10-02 12:05 ` [Bug 85381] " bugzilla-daemon
  2018-10-11  7:27 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2014-10-01 16:56 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=85381

            Bug ID: 85381
           Summary: ext4 & tmpfs: Splicing to regular files doesn't
                    trigger inotify
           Product: File System
           Version: 2.5
    Kernel Version: 3.14
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: richardpku@gmail.com
        Regression: No

* How to reproduce:

/tmp % cat a.c
#define _GNU_SOURCE 1
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

int main(void)
{
        int pipefd[2];
        pipe(pipefd);

        for (;;) {
                sleep(1);
                write(pipefd[1], "Hello world\n", 12);
                splice(pipefd[0], NULL, 1, NULL, INT_MAX, 0);
        }
}
/tmp % gcc a.c
/tmp % touch a.txt
/tmp % ./a.out > a.txt & tail -f a.txt


* Expected result:

tail prints "Hello world" every second.



* Actual result:

btrfs: Works as expected;
ext4/tmpfs: tail blocks on inotify forever and prints nothing.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 85381] ext4 & tmpfs: Splicing to regular files doesn't trigger inotify
  2014-10-01 16:56 [Bug 85381] New: ext4 & tmpfs: Splicing to regular files doesn't trigger inotify bugzilla-daemon
@ 2014-10-02 12:05 ` bugzilla-daemon
  2018-10-11  7:27 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2014-10-02 12:05 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=85381

Jan Kara <jack@suse.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jack@suse.cz
         Resolution|---                         |CODE_FIX

--- Comment #1 from Jan Kara <jack@suse.cz> ---
So this isn't a problem with current kernel (I tested 3.17-rc5) anymore. I
believe it got fixed by Al Viro's splice rewrite so 3.16 and newer kernels
should have the problem fixed.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 85381] ext4 & tmpfs: Splicing to regular files doesn't trigger inotify
  2014-10-01 16:56 [Bug 85381] New: ext4 & tmpfs: Splicing to regular files doesn't trigger inotify bugzilla-daemon
  2014-10-02 12:05 ` [Bug 85381] " bugzilla-daemon
@ 2018-10-11  7:27 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2018-10-11  7:27 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=85381

Dario Andreani (darioandre@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darioandre@gmail.com

--- Comment #2 from Dario Andreani (darioandre@gmail.com) ---
I still see this issue on kernel versions 4.4 and 4.9. But not on 4.15.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-11 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-01 16:56 [Bug 85381] New: ext4 & tmpfs: Splicing to regular files doesn't trigger inotify bugzilla-daemon
2014-10-02 12:05 ` [Bug 85381] " bugzilla-daemon
2018-10-11  7:27 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).