bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Detection of sparse files is broken on btrfs


From: Tim Kientzle
Subject: Re: [Bug-tar] Detection of sparse files is broken on btrfs
Date: Mon, 8 Jan 2018 05:51:47 -0800

Quoted from the earlier discussion:

> > One option is if st_blocks == 0 then tar should also check if st_mtime is
> > less than 60s in the past, and if yes then it should call fsync() on the
> > file to flush any unwritten data to disk , or assume the file is not sparse
> > and read the whole file, so that it doesn't incorrectly assume that the file
> > is sparse and skip archiving the file data.

I'm not entirely sure I understand the above.

It sounds like someone is claiming that:

* Archiving programs should know about the *timing* of filesystem 
implementations  (60s here for btrfs, something else for <new filesystem XYZ>?)

* And specifically request the OS to fsync() files before trusting the metadata

Huh?

Tim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]