[Bugs] [Bug 1315557] New: SEEK_HOLE and SEEK_DATA should return EINVAL when protocol support is missing

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 8 04:31:21 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1315557

            Bug ID: 1315557
           Summary: SEEK_HOLE and SEEK_DATA should return EINVAL when
                    protocol support is missing
           Product: GlusterFS
           Version: 3.7.9
         Component: libgfapi
          Keywords: Triaged
          Assignee: ndevos at redhat.com
          Reporter: ndevos at redhat.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org
            Blocks: 1309567 (glusterfs-3.7.9)



Description of problem:
GlusterFS 3.7 and earlier do not have support for the (new) SEEK FOP. There is
no check in glfs_lseek() for unknown SEEK_* operations, this needs to be added

Version-Release number of selected component (if applicable):
3.7 and before

How reproducible:
100%

Steps to Reproduce:
1. call glfs_lseek(..., ..., SEEK_DATA)

Actual results:
No error is returned.

Expected results:
-1 should get returned, and errno should have been set to EINVAL.

Additional info:
Found through code inspection while replying to
http://lists.nongnu.org/archive/html/qemu-block/2016-03/msg00119.html


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1309567
[Bug 1309567] Tracker for glusterfs-3.7.9
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=z7uoiTusbk&a=cc_unsubscribe


More information about the Bugs mailing list