Project

General

Profile

Actions

Feature #8671

closed

support SEEK_DATA and SEEK_HOLE

Added by Glass_saga (Masaki Matsushita) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
[ruby-core:56123]

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

patch.diff (3.01 KB) patch.diff Glass_saga (Masaki Matsushita), 07/23/2013 06:30 PM

Updated by naruse (Yui NARUSE) over 10 years ago

  • 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?

Updated by kosaki (Motohiro KOSAKI) over 10 years ago

The patch looks good to me.

Updated by matz (Yukihiro Matsumoto) over 10 years ago

  • Assignee changed from matz (Yukihiro Matsumoto) to Glass_saga (Masaki Matsushita)

We accept. Go ahead.

Matz.

Actions #4

Updated by Anonymous over 10 years ago

  • 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0