Skip to content

cp --debug should show when sparse detection: SEEK_HOLE #5715

@sylvestre

Description

@sylvestre

with our:

$ truncate -s16M file.sparse_
$ ./target/debug/cp --debug --reflink=never file.sparse_ file.sparse_.cp    
'file.sparse_' -> 'file.sparse_.cp'
copy offload: unknown, reflink: no, sparse detection: no

with GNU:

$ truncate -s16M file.sparse_
$ /usr/bin/cp --debug --reflink=never file.sparse_ file.sparse_.cp
'file.sparse_' -> 'file.sparse_.cp'
copy offload: unknown, reflink: no, sparse detection: SEEK_HOLE

Used https://github.com/coreutils/coreutils/blob/master/init.cfg#L555
and will unblock some tests like GNU/tests/cp/sparse-2

We have the definition but I don't think it is used anywhere:

SeekHole,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions