Linux Operating System (MOSC)

MOSC Banner

OCFS2 and tar sparse files

edited Aug 25, 2020 5:51PM in Linux Operating System (MOSC) Question

Hi,

 

In the context of Oracle VM (x86), where most of our files are large and sparse files (img disk files), we'd like to use tar efficiently (i.e using --sparse option).

The drawback is that files are apparently read twice. According to the GNU tar documentation, this is probably due to lack of support by the OS and/or FS

 

abstract from https://www.gnu.org/software/tar/manual/html_node/sparse.html

"

..

However, be aware that `--sparse' option may present a serious drawback. Namely, in order to determine the positions of holes in a file tar may have to read it before trying to archive it, so in total the file may be read twice. This may happen when your OS or your FS does not support SEEK_HOLE/SEEK_DATA feature in lseek (See `--hole-detection', below).

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center