public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/15177] New: need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE'
@ 2013-02-22 20:40 dsmith at redhat dot com
  2013-02-25 17:20 ` [Bug tapsets/15177] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2013-02-22 20:40 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tapsets/15177] need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE'
  2013-02-22 20:40 [Bug tapsets/15177] New: need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE' dsmith at redhat dot com
@ 2013-02-25 17:20 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2013-02-25 17:20 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from David Smith <dsmith at redhat dot com> 2013-02-25 17:20:00 UTC ---
Fixed in commit 5ad6028.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-25 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22 20:40 [Bug tapsets/15177] New: need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE' dsmith at redhat dot com
2013-02-25 17:20 ` [Bug tapsets/15177] " dsmith at redhat dot com

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 read-only IMAP folder(s) and NNTP newsgroup(s).