From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 85381] New: ext4 & tmpfs: Splicing to regular files doesn't trigger inotify
Date: Wed, 01 Oct 2014 16:56:36 +0000 [thread overview]
Message-ID: <bug-85381-13602@https.bugzilla.kernel.org/> (raw)
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.
next reply other threads:[~2014-10-01 16:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 16:56 bugzilla-daemon [this message]
2014-10-02 12:05 ` [Bug 85381] ext4 & tmpfs: Splicing to regular files doesn't trigger inotify bugzilla-daemon
2018-10-11 7:27 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-85381-13602@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).