]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount; fix and improve read+poll mountinfo
authorKarel Zak <kzak@redhat.com>
Thu, 29 Aug 2019 13:50:58 +0000 (15:50 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Aug 2019 13:50:58 +0000 (15:50 +0200)
commitee551c909f95437fd9fcd162f398c069d0ce9720
treed7e1edd5207d9b07db4d66e508669125c108f63d
parente4925f591c1bfb83719418b56b952830d15b77eb
libmount; fix and improve read+poll mountinfo

* fix read() buffer size (stupid bug...)

* split read() EINTR and poll() based attempts

* use 100 attempts

* wait 10000 usec between attempts, but first 10 attempts are without
  this delay. It makes the function usable for usual use-cases as well
  as on very busy systems (successfully tested with 300 concurrent
  mount/umount processes)

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/utils.c