This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/15177] New: need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE'


http://sourceware.org/bugzilla/show_bug.cgi?id=15177

             Bug #: 15177
           Summary: need to handle new 'whence' values of 'SEEK_DATA' and
                    'SEEK_HOLE'
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap@sourceware.org
        ReportedBy: dsmith@redhat.com
    Classification: Unclassified


While working on bug #15173, I discovered that the 'whence' argument of
lseek()/llseek() has 2 new values. According to the lseek() manpage:

====
       Since  version  3.1, Linux supports the following additional values for  
       whence:                                                                  

       SEEK_DATA                                                                
              Adjust the file offset to the next location in the file  greater  
              than  or  equal  to offset containing data.  If offset points to  
              data, then the file offset is set to offset.                      

       SEEK_HOLE                                                                
              Adjust the file offset to the next hole in the file greater than  
              or equal to offset.  If offset points into the middle of a hole,  
              then the file offset is set to offset.  If there is no hole past  
              offset,  then the file offset is adjusted to the end of the file  
              (i.e., there is an implicit hole at the end of any file).         
====

Systemtap should support these new values. At minimum, the _seek_whence_str()
tapset function should support them.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]