Re: Suggestion: bmap files and bmaptool

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

 



On Sun, 2013-08-18 at 16:43 +0100, Pádraig Brady wrote:
> You definitely need the fsync before doing the fiemap.
> We saw this on certain file systems including ext4 when adding
> fiemap support (efficient reading of holes) to cp.
> This is a bug in the fiemap interface IMHO in that it returns
> fairly useless data unless FIEMAP_FLAG_SYNC is specified.
> For a general utility like cp, we couldn't sync each file before copying
> (even only large files), so we restrict fiemap usage to files that
> have a different disk usage than apparent size and so probably contain holes.

FYI, I've just made sure I use the FIEMAP_FLAG_SYNC is used in the
project.

-- 
Best Regards,
Artem Bityutskiy

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux