Am 30.01.2015 um 09:49 schrieb Denis V. Lunev:
> On 30/01/15 11:47, Peter Lieven wrote:
>> Am 30.01.2015 um 09:42 schrieb Denis V. Lunev:
>>> The pattern
>>> do {
>>> if (fallocate(s->fd, mode, offset, len) == 0) {
>>> return 0;
>>> }
>>> } while (errno == E
On 30/01/15 11:47, Peter Lieven wrote:
Am 30.01.2015 um 09:42 schrieb Denis V. Lunev:
The pattern
do {
if (fallocate(s->fd, mode, offset, len) == 0) {
return 0;
}
} while (errno == EINTR);
ret = translate_err(-errno);
will be commonly useful in next
Am 30.01.2015 um 09:42 schrieb Denis V. Lunev:
> The pattern
> do {
> if (fallocate(s->fd, mode, offset, len) == 0) {
> return 0;
> }
> } while (errno == EINTR);
> ret = translate_err(-errno);
> will be commonly useful in next patches. Create helper for it.
>
The pattern
do {
if (fallocate(s->fd, mode, offset, len) == 0) {
return 0;
}
} while (errno == EINTR);
ret = translate_err(-errno);
will be commonly useful in next patches. Create helper for it.
Signed-off-by: Denis V. Lunev
Reviewed-by: Max Reitz
CC: Kevi
The pattern
do {
if (fallocate(s->fd, mode, offset, len) == 0) {
return 0;
}
} while (errno == EINTR);
ret = translate_err(-errno);
will be commonly useful in next patches. Create helper for it.
Signed-off-by: Denis V. Lunev
Reviewed-by: Max Reitz
CC: Kevi
On 2015-01-27 at 08:51, Denis V. Lunev wrote:
The pattern
do {
if (fallocate(s->fd, mode, offset, len) == 0) {
return 0;
}
} while (errno == EINTR);
ret = translate_err(-errno);
will be commonly useful in next patches. Create helper for it.
Signed-of
The pattern
do {
if (fallocate(s->fd, mode, offset, len) == 0) {
return 0;
}
} while (errno == EINTR);
ret = translate_err(-errno);
will be commonly useful in next patches. Create helper for it.
Signed-off-by: Denis V. Lunev
CC: Kevin Wolf
CC: Stefan Hajno