This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/15177] New: need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE'
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 22 Feb 2013 20:40:10 +0000
- Subject: [Bug tapsets/15177] New: need to handle new 'whence' values of 'SEEK_DATA' and 'SEEK_HOLE'
- Auto-submitted: auto-generated
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.