alexeymin added a comment.
In D16744#355899 <https://phabricator.kde.org/D16744#355899>, @cfeck wrote: > Would a switch be more readable? Did you mean a block with `if (result == ENOSPC) {` ? Strictly speaking this whole block is not necessary, but it can provide some useful info in console. Or do you suggest adding switch with all error return codes from http://man7.org/linux/man-pages/man3/posix_fallocate.3.html? 😕 REPOSITORY R244 KCoreAddons REVISION DETAIL https://phabricator.kde.org/D16744 To: alexeymin, dfaure, #frameworks, mpyne Cc: cfeck, kde-frameworks-devel, michaelh, ngraham, bruns