Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1714695

Re: [PATCH] ceph: check negative offsets on ceph_llseek()

From Ilya Dryomov <idryomov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ceph: check negative offsets on ceph_llseek()
Date 2017-08-18 10:40 +0200
Message-ID <ufKYW-Zv-11@gated-at.bofh.it> (permalink)
References <u8b9U-2DD-27@gated-at.bofh.it> <uftlo-5z4-13@gated-at.bofh.it> <ufxfl-8ct-35@gated-at.bofh.it> <ufy1H-iq-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 17, 2017 at 8:40 PM, Luis Henriques <lhenriques@suse.com> wrote:
> Ilya Dryomov <idryomov@gmail.com> writes:
>
>> On Thu, Aug 17, 2017 at 3:45 PM, Luis Henriques <lhenriques@suse.com> wrote:
>>> Luis Henriques <lhenriques@suse.com> writes:
>>>
>>>> When a user requests SEEK_HOLE or SEEK_DATA with a negative offset
>>>> ceph_llseek should return -ENXIO.  Currently -EINVAL is being returned for
>>>> SEEK_DATA and 0 for SEEK_HOLE.
>>>
>>> Ping
>>>
>>> This patch should make xfstest generic/448 happy.
>>
>> It should or it does? ;)
>>
>
> Heh, it *does* make generic/448 happy.
>
>>
>> I saw generic/448 failures on ext4 with Darrick's recent test
>>change,
>> haven't tried ceph yet.
>
> The generic/448 test currently fails with the error codes described in
> the commit log.  I didn't found it useful to include in the commit
> log, but here's the full test output:
>
> File system supports the default behavior.
> File system does not support unwritten extents.
> File system magic#: 0xc36400
> Allocation size: 4194304
> 18. Test file with negative SEEK_{HOLE,DATA} offsets
> 18.01 SEEK_HOLE expected -1 or -1, got 0.                         FAIL
> 18.02 SEEK_DATA expected -1 with errno -6, got -22.               FAIL
>
> seek sanity check failed!

Applied.

Thanks,

                Ilya

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH] ceph: check negative offsets on ceph_llseek() Luis Henriques <lhenriques@suse.com> - 2017-08-17 15:50 +0200
  Re: [PATCH] ceph: check negative offsets on ceph_llseek() Ilya Dryomov <idryomov@gmail.com> - 2017-08-17 20:00 +0200
    Re: [PATCH] ceph: check negative offsets on ceph_llseek() Luis Henriques <lhenriques@suse.com> - 2017-08-17 20:50 +0200
      Re: [PATCH] ceph: check negative offsets on ceph_llseek() Ilya Dryomov <idryomov@gmail.com> - 2017-08-18 10:40 +0200

csiph-web