]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: revert mmap usage
authorKarel Zak <kzak@redhat.com>
Wed, 30 Mar 2016 12:53:33 +0000 (14:53 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Mar 2016 12:53:33 +0000 (14:53 +0200)
commite04f386084c72df17e1d1e7d7d3e1e420a198442
tree139a303b418ff2657e064998da19a968f24dc0f6
parent00e40d688a0aa50296b00700708443268dabe2d1
libblkid: revert mmap usage

The implementation has not been ready for I/O errors and it seems that
there is no elegant way how to resolve this issue. Linux returns
SIGBUS on mmap errors and play with signals (or longjumps) in shared
library is really bad idea.

It also seems that mmaped devices have some unexpected side-effects
with page-cache where for example dd returns old data for already
modified device etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/blkidP.h
libblkid/src/probe.c