RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1710751 - splice write does not update file size
Summary: splice write does not update file size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.7
Hardware: All
OS: All
high
medium
Target Milestone: rc
: 7.8
Assignee: Yan, Zheng
QA Contact: Hemanth Kumar
John Wilkins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-16 08:59 UTC by Yan, Zheng
Modified: 2020-04-24 13:18 UTC (History)
10 users (show)

Fixed In Version: kernel-3.10.0-1114.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:18:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 39938 0 None None None 2019-05-16 08:59:21 UTC
Red Hat Product Errata RHSA-2020:1016 0 None None None 2020-03-31 19:20:33 UTC

Description Yan, Zheng 2019-05-16 08:59:21 UTC
Description of problem:

ceph_file_splice_write does not mark Fw cap dirty. File size update gets lost.


How reproducible:
1. use splice(2) to write data to a file from one cephfs mount
2. stat the file from another cephfs mount. stat will show file size does not change.

Comment 14 Jan Stancek 2019-11-26 09:15:57 UTC
Patch(es) committed on kernel-3.10.0-1114.el7

Comment 17 Yan, Zheng 2020-03-05 14:05:14 UTC
compile following code; run the result program in /mnt/cephfs (./a.out testfile); umount /mnt/cech; mount /mnt/ceph again; check if 'testfile' size is correct.

include <errno.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>

int main(int argc, char* argv[])
{
        int pipes[2];
        int fd;

        pipe(pipes);

        fd = open(argv[1], O_CREAT | O_RDWR, 0666);


        write(pipes[1], "hello", 5);

        splice(pipes[0], NULL, fd, NULL, 5, 0);

        return 0;
}

Comment 18 Hemanth Kumar 2020-03-05 16:37:01 UTC
Verified the fix in kernel : 3.10.0-1127.el7.x86_64 

Moving to verified.

Comment 20 errata-xmlrpc 2020-03-31 19:18:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1016


Note You need to log in before you can comment on or make changes to this bug.