Skip to content

add new dependency: fiemap #13307

Description

@oech3

I want to use fiemap for

  • a todo for cp
    // TODO Perhaps we can employ the "fiemap ioctl" API to get the
    // file extent mappings:
    // https://www.kernel.org/doc/html/latest/filesystems/fiemap.html
  • improving performance for cat, head -c and tail. copy_file_range is slower than splice on the FS without reflink support. uutils/cat doesn't use copy_file_range by the reason while GNU cat supports reflink via copy_file_range. fiemap allows to check that copy_file_range worked as reflink.

https://github.com/lilydjwg/fiemap-rs

There is no other safe-wrapper on rustix currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions