Opened 11 years ago

Closed 11 years ago

#700 closed defect (fixed)

sparse file not supported as big files

Reported by: Bruno Cornec Owned by: Bruno Cornec
Priority: normal Milestone: 3.0.4
Component: mondo Version: 3.0.3
Severity: normal Keywords:


sparse files identified as big files won't be handled correctly by mondoarchive, and fully written, instead of being created as sparse files.

Change History (1)

comment:1 by Bruno Cornec, 11 years ago

Resolution: fixed
Status: newclosed

The specificity of sparse file is that their st_size field returned by the stat() system call is much larger than the number of blocks in st_blocks.

So mondoarchive now uses the latter to computer when a file is a lrge file one, or not. This will allow to consider those sparse file, not large in blocks to not be big files, and thus to be handled by afio/star correctly (especially star handles very well sparse file, even with compression).

This is provided in rev [3137] and will be in 3.0.4.

This version still considers that big files are 64MB or more. So to be as flexible as possible, we also need to be able to change that value, which is the goal of #701

Note: See TracTickets for help on using tickets.