Feature #8671
closed
support SEEK_DATA and SEEK_HOLE
Added by Glass_saga (Masaki Matsushita) over 11 years ago.
Updated over 11 years ago.
Description
SEEK_DATA and SEEK_HOLE are whences for lseek(2) supported by Linux since version 3.1.
These are useful to deal with sparse files.
I propose that ruby supports these whences.
Files
- Description updated (diff)
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
- Target version changed from 2.6 to 2.1.0
It sounds good.
matz, how do you think?
The patch looks good to me.
- Assignee changed from matz (Yukihiro Matsumoto) to Glass_saga (Masaki Matsushita)
We accept. Go ahead.
Matz.
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r42211.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
-
io.c (interpret_seek_whence): support SEEK_DATA and SEEK_HOLE.
These are whences for lseek(2) supported by Linux since version 3.1.
[ruby-core:56123] [Feature #8671]
-
test/ruby/test_io.rb: Add tests for above.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0