Fiemap: synchronize the file before invoking the ioctl
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 17 Sep 2013 11:57:35 +0000 (14:57 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 18 Sep 2013 06:51:25 +0000 (09:51 +0300)
commit5b1a9162ae58f34670c57ab3c60da3d38de8e778
tree872897877c5dd973400af60d7f4941caa7653659
parent06148887b8161e8a5381aed3914966336ab06e8d
Fiemap: synchronize the file before invoking the ioctl

Early FIEMAP implementations had many bugs related to cached dirty data. And
this is why it is safer to synchronize the file before invoking FIEMAP for it.
Let's start using the 'FIEMAP_FLAG_SYNC' FIEMAP ioctl flag which does exactly
that.

Change-Id: I1698b88ed3978ffa632502ba72ad345ec8708ce0
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
TODO
bmaptools/Fiemap.py